mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Removed blocking logic and duplicate validations.
This commit is contained in:
parent
439f8a8aa3
commit
216304a191
4 changed files with 8 additions and 37 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue