fix: check schedule privilege, closes #11032

This commit is contained in:
Barış Soner Uşaklı
2022-11-11 11:14:30 -05:00
parent b34e859c1b
commit 6109061501
2 changed files with 11 additions and 7 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 = parseInt(data.timestamp, 10) || Date.now();
data.timestamp = Date.now();
data.fromQueue = false;
};