feat: scheduled topics (#9399)

* feat: scheduled topics

* refactor: linting fixes

* fix: tests

* fix(test): race condition

* fix: make a single request
This commit is contained in:
gasoved
2021-03-24 21:28:02 +03:00
committed by GitHub
parent 67b09cba5f
commit 077330b764
42 changed files with 594 additions and 125 deletions

View File

@@ -13,7 +13,7 @@ const events = require('../events');
exports.setDefaultPostData = function (reqOrSocket, data) {
data.uid = reqOrSocket.uid;
data.req = exports.buildReqObject(reqOrSocket, { ...data });
data.timestamp = Date.now();
data.timestamp = parseInt(data.timestamp, 10) || Date.now();
data.fromQueue = false;
};