mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
set batchupdate.obj if not already set (thanks @SlappyBag!)
This commit is contained in:
parent
05df606a85
commit
9b91977f59
1 changed files with 3 additions and 1 deletions
|
|
@ -69,7 +69,9 @@ module.exports.BatchUpdate = BatchUpdate = (model) ->
|
|||
{
|
||||
user: user
|
||||
|
||||
obj: -> obj
|
||||
obj: ->
|
||||
obj ?= user.get()
|
||||
return obj
|
||||
|
||||
startTransaction: ->
|
||||
# start a batch transaction - nothing between now and @commit() will be set immediately
|
||||
|
|
|
|||
Loading…
Reference in a new issue