#7884 added new filter field #2981

Merged
jon merged 15 commits from 7884-AddLabelerField into dev 2024-10-02 05:04:18 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit c4f26094d5 - Show all commits

View File

@ -229,19 +229,19 @@ module.exports = Self => {
if (daysAgo && daysOnward) {
sql = `
WHERE t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY
AND t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY
AND t.shipped <= util.VN_CURDATE() + INTERVAL ? DAY
`;
params.push(daysAgo, daysOnward);
} else if (daysAgo) {
sql = `
WHERE t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY
AND t.shipped >= util.VN_CURDATE() - INTERVAL ? DAY
AND t.shipped < util.VN_CURDATE()
`;
params.push(daysAgo);
} else if (daysOnward) {
sql = `
WHERE t.shipped <= util.VN_CURDATE() + INTERVAL ? DAY
AND t.shipped <= util.VN_CURDATE() + INTERVAL ? DAY
AND t.shipped >= util.VN_CURDATE()
`;
params.push(daysOnward);