diff --git a/src/app/schema.coffee b/src/app/schema.coffee index 76658e5263..20d8bb527d 100644 --- a/src/app/schema.coffee +++ b/src/app/schema.coffee @@ -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