From ee32fb6b34bd96b85632b3ea1226d931781859c5 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Fri, 22 Dec 2023 09:18:22 +0800 Subject: [PATCH] Update utils.ts --- backend/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/utils.ts b/backend/utils.ts index ece47cf..2114882 100644 --- a/backend/utils.ts +++ b/backend/utils.ts @@ -1,7 +1,7 @@ import { DateTime } from 'luxon'; import { id } from 'william.js'; -export const customId = (length: number, alphabet: string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") => id(length, 1, alphabet); +export const customId = (length: number, alphabet: string = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') => id(length, 1, alphabet); export const randomHexColour = () => { // From: https://www.geeksforgeeks.org/javascript-generate-random-hex-codes-color/ const letters = '0123456789ABCDEF';