fix: Collection creator not written (bad merge from refactor while this branch has been open)

refactor: Move processing to async queue now that file can be loaded from external storage
This commit is contained in:
Tom Moor
2021-02-18 22:55:29 -08:00
parent f4c871bb62
commit c5f9412ac0
4 changed files with 59 additions and 29 deletions

View File

@ -57,7 +57,7 @@ export default async function collectionImporter({
name: item.name,
},
defaults: {
creatorId: user.id,
createdById: user.id,
private: false,
},
});
@ -69,7 +69,7 @@ export default async function collectionImporter({
const name = `${item.name} (Imported)`;
collection = await Collection.create({
teamId: user.teamId,
creatorId: user.id,
createdById: user.id,
name,
private: false,
});