From d7087e7c3cbdbf0f88ef1334208206e683f3b213 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Sat, 21 May 2022 00:37:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20temporarely=20fixed=20e?= =?UTF-8?q?ncryption=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/handlers/encryption.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aca27bf..216f2fb 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "src/index.ts", "scripts": { "test": "jest", - "start": "nodemon .", + "start": "nodemon src/index.ts", "prettier-format": "prettier \"src/**/*.ts\" --write", "lint": "eslint ./src --ext .ts", "prepare": "husky install" 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()]);