Removed blocking logic and duplicate validations.

This commit is contained in:
Mike Cao 2024-04-25 23:21:12 -07:00
parent 439f8a8aa3
commit 216304a191
4 changed files with 8 additions and 37 deletions

View file

@ -1,6 +1,6 @@
import { startOfHour, startOfMonth } from 'date-fns';
import { hash } from 'next-basics';
import { v4, v5, validate } from 'uuid';
import { v4, v5 } from 'uuid';
export function secret() {
return hash(process.env.APP_SECRET || process.env.DATABASE_URL);
@ -23,7 +23,3 @@ export function uuid(...args: any) {
return v5(hash(...args, salt()), v5.DNS);
}
export function isUuid(value: string) {
return validate(value);
}