db/Pad.js: prototype.copy(), removed redundant callback argument

This would cause a crash when calling pad.remove().
Found by the Typescript compiler when doing an experimental conversion.
This commit is contained in:
muxator 2019-03-26 23:44:04 +01:00 committed by muxator
parent 53b3328b5f
commit 4040813447

View file

@ -399,7 +399,7 @@ Pad.prototype.copy = async function copy(destinationID, force) {
// exists and forcing
let pad = await padManager.getPad(destinationID);
await pad.remove(callback);
await pad.remove();
}
// copy the 'pad' entry