#7884 - Add new param to search days backward #2875

Closed
jsegarra wants to merge 2 commits from 7884_daysBackward into dev
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 2aec9db824 - Show all commits

View File

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

View File

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