revert: remove _update_ts injection as it breaks ticket scanning

This commit is contained in:
2026-07-11 11:29:26 +08:00
parent 74b9754b7d
commit de29ecac84
3 changed files with 1 additions and 102 deletions
-8
View File
@@ -19,14 +19,6 @@ app.use((req, res, next) => {
const origJson = res.json.bind(res);
res.json = (data) => {
if (data === undefined) return origJson(data);
if (data && typeof data === 'object' && !Array.isArray(data)) {
const cfg = DataService.getConfig && DataService.getConfig();
if (cfg && cfg.update_timestamp) {
data._update_ts = cfg.update_timestamp;
}
}
const body = jsonStringifyUnicode(data);
res.set('Content-Type', 'application/json; charset=utf-8');
return res.send(body);