From 272af34736749e90abda04a7ad81cc963ad77bfd Mon Sep 17 00:00:00 2001 From: yzj <71420106+yzj12138@users.noreply.github.com> Date: Thu, 6 Jul 2023 17:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9delete=E4=BD=BF=E7=94=A8send?= =?UTF-8?q?=5Fcommand=20(#1770)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: xingfan.yzj --- lualib/skynet/db/mongo.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/skynet/db/mongo.lua b/lualib/skynet/db/mongo.lua index 958f9673..451e6059 100644 --- a/lualib/skynet/db/mongo.lua +++ b/lualib/skynet/db/mongo.lua @@ -457,7 +457,7 @@ function mongo_collection:raw_safe_update(update) end function mongo_collection:delete(query, single) - self.database:runCommand("delete", self.name, "deletes", {bson_encode({ + self.database:send_command("delete", self.name, "deletes", {bson_encode({ q = query, limit = single and 1 or 0, })})