Skip to content

Commit da1bda2

Browse files
db transaction
1 parent 71d3283 commit da1bda2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

slim.js

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ DynamoTable.prototype.update = function(key, actions, options, cb) {
144144
// If actions is a string or array, then it's a whitelist for attributes to update
145145
if (typeof actions === 'string') actions = [actions]
146146
if (Array.isArray(actions)) { pick = actions; actions = key; key = null }
147+
if (!actions) { actions = key; key = null }
147148

148149
// If key is null, assume actions has a full object to put so clone it (without keys)
149150
if (key == null) {

0 commit comments

Comments
 (0)