Skip to content
Snippets Groups Projects
Commit 6422be63 authored by Sebastian Mihalache's avatar Sebastian Mihalache
Browse files

fix await promise

parent 0f54dd17
No related branches found
No related tags found
1 merge request!8Sprint #10
......@@ -17,7 +17,7 @@ async function teamPermissions(user, operation, object, context) {
}),
)
const collectionsPermissions = Promise.all(
const collectionsPermissions = await Promise.all(
teams.filter(Boolean).map(async team => {
const collection = await context.models.Collection.find(team.object.id)
const collPerm = {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment