diff --git a/src/handlers/encryption.ts b/src/handlers/encryption.ts index 5e07d89..8e7ea27 100644 --- a/src/handlers/encryption.ts +++ b/src/handlers/encryption.ts @@ -4,7 +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: any; content: any } => { const cipher = crypto.createCipheriv(algorithm, secretKey, iv); const encrypted = Buffer.concat([cipher.update(text), cipher.final()]);