From 6b327e6c3cd581b8b942fda3ae5e86d4d861f325 Mon Sep 17 00:00:00 2001 From: Anonymous <> Date: Tue, 12 Nov 2024 03:17:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(cache/mongo):=20UpdateDocuments=20=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- storage/cache/mongodb.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/storage/cache/mongodb.go b/storage/cache/mongodb.go index 8fcf4b48d..b7721cf12 100644 --- a/storage/cache/mongodb.go +++ b/storage/cache/mongodb.go @@ -107,6 +107,13 @@ func (m MongoDB) Init() error { {"id", 1}, }, }, + // for UpdateDocuments + { + Keys: bson.D{ + {"collection", 1}, + {"id", 1}, + }, + }, { Keys: bson.D{ {"collection", 1},