(currentLevelCollection: string)
| 57 | const collectionsService = new CollectionsService({ knex: trx, schema }); |
| 58 | |
| 59 | const getNestedCollectionsToCreate = (currentLevelCollection: string) => |
| 60 | snapshotDiff.collections.filter( |
| 61 | ({ diff }) => (diff[0] as DiffNew<Collection>).rhs?.meta?.group === currentLevelCollection, |
| 62 | ) as CollectionDelta[]; |
| 63 | |
| 64 | const createCollections = async (collections: CollectionDelta[]) => { |
| 65 | for (const { collection, diff } of collections) { |