mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
pad.js: wait write callback instead of buffer callback
This commit is contained in:
parent
53003d4471
commit
6cb78e51b0
1 changed files with 2 additions and 2 deletions
|
@ -484,12 +484,12 @@ Pad.prototype.remove = async function remove() {
|
||||||
|
|
||||||
// delete all chat messages
|
// delete all chat messages
|
||||||
promises.timesLimit(this.chatHead + 1, 500, function (i) {
|
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
|
// delete all revisions
|
||||||
promises.timesLimit(this.head + 1, 500, function (i) {
|
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
|
// remove pad from all authors who contributed
|
||||||
|
|
Loading…
Reference in a new issue