From 6cb78e51b0854d0c7eabb7e5431038eb0cdf6c71 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Apr 2020 16:14:18 +0200 Subject: [PATCH] pad.js: wait write callback instead of buffer callback --- src/node/db/Pad.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 10f50ec22..158bfafb5 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -484,12 +484,12 @@ Pad.prototype.remove = async function remove() { // delete all chat messages promises.timesLimit(this.chatHead + 1, 500, function (i) { - return db.remove("pad:" + padID + ":chat:" + i); + return db.remove("pad:" + padID + ":chat:" + i, null); }) // delete all revisions promises.timesLimit(this.head + 1, 500, function (i) { - return db.remove("pad:" + padID + ":revs:" + i); + return db.remove("pad:" + padID + ":revs:" + i, null); }) // remove pad from all authors who contributed