diff --git a/src/handlers/encryption.ts b/src/handlers/encryption.ts index 7c81347..5e07d89 100644 --- a/src/handlers/encryption.ts +++ b/src/handlers/encryption.ts @@ -4,9 +4,7 @@ import { secretKey, algorithm } from "@config/encryption"; const iv = crypto.randomBytes(16); -const encrypt = (text: any): {iv: error; -content: error; -} => { +const encrypt = (text: any): { iv: error; content: error } => { const cipher = crypto.createCipheriv(algorithm, secretKey, iv); const encrypted = Buffer.concat([cipher.update(text), cipher.final()]); diff --git a/src/helpers/pluralize.ts b/src/helpers/pluralize.ts index 491393b..c9ad1ad 100644 --- a/src/helpers/pluralize.ts +++ b/src/helpers/pluralize.ts @@ -1,6 +1,6 @@ import logger from "@root/logger"; -export default (count: number, noun: string, suffix?: string): string => { +export default (count: number, noun: string, suffix?: string): string => { const result = `${count} ${noun}${count !== 1 ? suffix || "s" : ""}`; logger?.verbose(`Pluralized ${count} to ${result}`); return result;