1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

long line

This commit is contained in:
David Baker
2017-04-04 16:29:05 +01:00
parent bafe9c06d4
commit 8c92e221a3

View File

@@ -146,7 +146,9 @@ IndexedDBStore.prototype.save = function() {
const now = Date.now();
if (now - this._syncTs > WRITE_DELAY_MS) {
this._syncTs = Date.now(); // set now to guard against multi-writes
return this.backend.syncToDatabase(this.getUsers()).catch((err) => {console.error("sync fail:", err);});
return this.backend.syncToDatabase(this.getUsers()).catch((err) => {
console.error("sync fail:", err);
});
}
return q();
};