test: refs #7884 change days by daysAfter
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-08-21 20:48:00 +02:00
parent 151b26ae8b
commit 2aec9db824
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ module.exports = Self => {
params: [ctx.args.daysBefore] params: [ctx.args.daysBefore]
}); });
} }
stmt.merge({sql: ')'}); if (ctx.args.daysAfter) stmt.merge({sql: ')'});
stmt.merge(conn.makeSuffix(filter)); stmt.merge(conn.makeSuffix(filter));
const itemsIndex = stmts.push(stmt) - 1; const itemsIndex = stmts.push(stmt) - 1;

View File

@ -55,7 +55,7 @@ describe('Entry filter()', () => {
try { try {
const ctx = { const ctx = {
args: {days: 6}, args: {daysAfter: 6},
req: {accessToken: {userId: 1102}} req: {accessToken: {userId: 1102}}
}; };