test: refs #7884 change days by daysAfter
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
151b26ae8b
commit
2aec9db824
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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}}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue