Skip to content

Commit

Permalink
fix:final review fixes reread
Browse files Browse the repository at this point in the history
  • Loading branch information
HatemMn committed Nov 20, 2024
1 parent 720a4f9 commit 53d4b0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/actions/javascript/encryptDatabase.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { findexDatabaseEmployee, findexDatabaseEmployeeBytes } from "../../utils/covercryptConfig";
import { findexDatabaseEmployee, findexDatabaseEncryptedEmployees } from "../../utils/covercryptConfig";
import { AesGcm } from "cloudproof_js";

export const encryptDatabase = async (
clearDatabase: findexDatabaseEmployee[],
key: Uint8Array,
nonce: Uint8Array,
authData: Uint8Array
): Promise<findexDatabaseEmployeeBytes[]> => {
): Promise<findexDatabaseEncryptedEmployees[]> => {
const { Aes256Gcm } = await AesGcm();

return Promise.all(
Expand 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
)
)
);
Expand Down

0 comments on commit 53d4b0e

Please sign in to comment.