fixup! Remove the gorm dependency from the Update func

pull/2/head
Vinícius Garcia 2020-10-26 13:21:48 -03:00
parent 8c1c483462
commit 733284997f
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ func buildUpdateQuery(
numAttrs := len(recordMap)
numIDs := len(idFieldNames)
args = make([]interface{}, numAttrs+numIDs)
whereArgs := args[numAttrs-1:]
whereArgs := args[numAttrs-len(idFieldNames):]
var whereQuery []string
for i, fieldName := range idFieldNames {