comment out corrupt seed files

This commit is contained in:
Maidul Islam
2024-01-22 14:09:02 -05:00
committed by Akhil Mohan
parent 8eace5528f
commit b9320ed9bd
2 changed files with 12 additions and 12 deletions

View File

@@ -130,11 +130,11 @@ export const buildUserProjectKey = async (privateKey: string, publickey: string)
return { nonce, ciphertext };
};
export const getUserProjectKey = async (privateKey: string) => {
const key = decryptAsymmetric({
ciphertext: decryptFileKey.encryptedKey,
nonce: decryptFileKey.nonce,
publicKey: decryptFileKey.sender.publicKey,
privateKey: PRIVATE_KEY
});
};
// export const getUserProjectKey = async (privateKey: string) => {
// const key = decryptAsymmetric({
// ciphertext: decryptFileKey.encryptedKey,
// nonce: decryptFileKey.nonce,
// publicKey: decryptFileKey.sender.publicKey,
// privateKey: PRIVATE_KEY
// });
// };

View File

@@ -25,10 +25,10 @@ export async function seed(knex: Knex): Promise<void> {
})
.returning("*");
await knex(TableName.ProjectKeys).insert({
projectId: project.id,
senderId: seedData1.id
});
// await knex(TableName.ProjectKeys).insert({
// projectId: project.id,
// senderId: seedData1.id
// });
await knex(TableName.ProjectMembership).insert({
projectId: project.id,