use ids instead of alphabets (index)

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-20 21:42:02 +02:00
parent a5b06c8af0
commit a6b3d341c1
9 changed files with 47 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
import { nanoid } from 'nanoid/non-secure';
export function shortId() {
return nanoid(4);
}