feat: removed folder striping in permission split project role migration

This commit is contained in:
=
2024-10-23 23:01:37 +05:30
parent c8e47771d4
commit 05bdbbf59d

View File

@@ -30,7 +30,7 @@ export async function up(knex: Knex): Promise<void> {
...el,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore-error this is valid ts
permissions: JSON.stringify(packRules(backfillPermissionV1SchemaToV2Schema(unpackRules(el.permissions))))
permissions: JSON.stringify(packRules(backfillPermissionV1SchemaToV2Schema(unpackRules(el.permissions), true)))
}));
if (updatedDocs.length) {
for (let i = 0; i < updatedDocs.length; i += CHUNK_SIZE) {