diff --git a/src/server.js b/src/server.js index 1bd328c8..91ac7a2f 100644 --- a/src/server.js +++ b/src/server.js @@ -277,7 +277,7 @@ Server.prototype.announce = function (data) { Server.prototype.shutdown = function () { Logger.syslog.log("Unloading channels"); - Promise.map(this.channels, channel => { + Promise.reduce(this.channels, (_, channel) => { return channel.saveState().tap(() => { Logger.syslog.log(`Saved /r/${channel.name}`); }).catch(err => {