|
|
@@ -1,6 +1,7 @@
|
|
|
import { normalizeExpiredAtForThreadRelations } from '~/features/openai/server/services/normalize-data';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
+import { convertNullToEmptyGrantedArrays } from './convert-null-to-empty-granted-arrays';
|
|
|
import { convertRevisionPageIdToObjectId } from './convert-revision-page-id-to-objectid';
|
|
|
import { renameDuplicateRootPages } from './rename-duplicate-root-pages';
|
|
|
|
|
|
@@ -10,6 +11,7 @@ export const normalizeData = async(): Promise<void> => {
|
|
|
await renameDuplicateRootPages();
|
|
|
await convertRevisionPageIdToObjectId();
|
|
|
await normalizeExpiredAtForThreadRelations();
|
|
|
+ await convertNullToEmptyGrantedArrays();
|
|
|
|
|
|
logger.info('normalizeData has been executed');
|
|
|
return;
|