diff --git a/internal/engine/crud_handler.go b/internal/engine/crud_handler.go index 145f17f..67bffe8 100644 --- a/internal/engine/crud_handler.go +++ b/internal/engine/crud_handler.go @@ -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 }