fix: refs #7884 fixed filter
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jon Elias 2024-09-30 12:46:41 +02:00
parent eacc2d5d2a
commit c4f26094d5
1 changed files with 3 additions and 3 deletions

View File

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