mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
v3: iap accessible under /api/v3, fixes to spells and groups invitations
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user