From 53d4b0e74d588e9d3845aea9ea045193ead9806f Mon Sep 17 00:00:00 2001 From: HatemMn <19950216+HatemMn@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:34:27 +0100 Subject: [PATCH] fix:final review fixes reread --- public/actions/javascript/encryptDatabase.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/actions/javascript/encryptDatabase.ts b/public/actions/javascript/encryptDatabase.ts index ca42c7f..e31e18d 100644 --- a/public/actions/javascript/encryptDatabase.ts +++ b/public/actions/javascript/encryptDatabase.ts @@ -1,4 +1,4 @@ -import { findexDatabaseEmployee, findexDatabaseEmployeeBytes } from "../../utils/covercryptConfig"; +import { findexDatabaseEmployee, findexDatabaseEncryptedEmployees } from "../../utils/covercryptConfig"; import { AesGcm } from "cloudproof_js"; export const encryptDatabase = async ( @@ -6,7 +6,7 @@ export const encryptDatabase = async ( key: Uint8Array, nonce: Uint8Array, authData: Uint8Array -): Promise => { +): Promise => { const { Aes256Gcm } = await AesGcm(); return Promise.all( @@ -22,7 +22,7 @@ export const encryptDatabase = async ( [index]: Aes256Gcm.encrypt(field, key, nonce, authData), }; }, - { uuid: e.uuid } as findexDatabaseEmployeeBytes + { uuid: e.uuid } as findexDatabaseEncryptedEmployees ) ) );