Skip to content

Commit

Permalink
Fix: await subfolder creation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderleegs committed Mar 24, 2021
1 parent 2cca46e commit 8f4525f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function moveFiles (req, res, next) {
// Check if subfolder exists
const IsomerSubfolder = new Subfolder(accessToken, siteName, targetCollectionName)
const subfolders = await IsomerSubfolder.list()
if (!subfolders.includes(targetSubfolderName)) IsomerSubfolder.create(targetSubfolderName)
if (!subfolders.includes(targetSubfolderName)) await IsomerSubfolder.create(targetSubfolderName)
}

// We can't perform these operations concurrently because of conflict issues
Expand Down

0 comments on commit 8f4525f

Please sign in to comment.