v3: iap accessible under /api/v3, fixes to spells and groups invitations

This commit is contained in:
Matteo Pagliazzi
2016-05-19 22:43:11 +02:00
parent c6da283b54
commit 5ba33bc5a1
3 changed files with 10 additions and 2 deletions

View File

@@ -378,7 +378,10 @@ api.castSpell = {
spell.cast(user, tasks, req);
let toSave = tasks.filter(t => t.isModified());
let toSave = tasks
.filter(t => t.isModified())
.map(t => t.save());
toSave.unshift(user.save());
let saved = await Bluebird.all(toSave);