restricted update
This commit is contained in:
@@ -30,6 +30,9 @@ func (wfa *ExecutionVerificationMongoAccessor) StoreOne(set utils.DBObject) (uti
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (wfa *ExecutionVerificationMongoAccessor) UpdateOne(set map[string]interface{}, id string) (utils.DBObject, int, error) {
|
func (wfa *ExecutionVerificationMongoAccessor) UpdateOne(set map[string]interface{}, id string) (utils.DBObject, int, error) {
|
||||||
set["is_verified"] = true
|
set = map[string]interface{}{
|
||||||
|
"is_verified": true,
|
||||||
|
"validate": set["validate"],
|
||||||
|
}
|
||||||
return utils.GenericUpdateOne(set, id, wfa)
|
return utils.GenericUpdateOne(set, id, wfa)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user