```
feat(engine): 修复更新操作中upsertedIDs变量未定义的问题 在CRUDHandler的Update方法中,修正了upsertedIDs变量的赋值, 使其与store.Update方法的返回值保持一致。 ```
This commit is contained in:
parent
7428dc45f6
commit
5f85e67047
|
|
@ -55,7 +55,7 @@ func (h *CRUDHandler) Insert(ctx context.Context, collection string, docs []map[
|
|||
|
||||
// Update 更新文档
|
||||
func (h *CRUDHandler) Update(ctx context.Context, collection string, filter types.Filter, update types.Update, upsert bool) (*types.UpdateResult, error) {
|
||||
matched, modified, _, err := h.store.Update(collection, filter, update, upsert, nil)
|
||||
matched, modified, upsertedIDs, err := h.store.Update(collection, filter, update, upsert, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue