comment out corrupt seed files

This commit is contained in:
Maidul Islam
2024-01-27 12:39:54 +05:30
committed by Akhil Mohan
parent 8eace5528f
commit b9320ed9bd
2 changed files with 12 additions and 12 deletions
+8 -8
View File
@@ -130,11 +130,11 @@ export const buildUserProjectKey = async (privateKey: string, publickey: string)
return { nonce, ciphertext }; return { nonce, ciphertext };
}; };
export const getUserProjectKey = async (privateKey: string) => { // export const getUserProjectKey = async (privateKey: string) => {
const key = decryptAsymmetric({ // const key = decryptAsymmetric({
ciphertext: decryptFileKey.encryptedKey, // ciphertext: decryptFileKey.encryptedKey,
nonce: decryptFileKey.nonce, // nonce: decryptFileKey.nonce,
publicKey: decryptFileKey.sender.publicKey, // publicKey: decryptFileKey.sender.publicKey,
privateKey: PRIVATE_KEY // privateKey: PRIVATE_KEY
}); // });
}; // };
+4 -4
View File
@@ -25,10 +25,10 @@ export async function seed(knex: Knex): Promise<void> {
}) })
.returning("*"); .returning("*");
await knex(TableName.ProjectKeys).insert({ // await knex(TableName.ProjectKeys).insert({
projectId: project.id, // projectId: project.id,
senderId: seedData1.id // senderId: seedData1.id
}); // });
await knex(TableName.ProjectMembership).insert({ await knex(TableName.ProjectMembership).insert({
projectId: project.id, projectId: project.id,