fix: use camelCase for createdAfter in the Notifications URL

Instead of the former created_after.

Signed-off-by: Marek Libra <marek.libra@gmail.com>
This commit is contained in:
Marek Libra
2024-03-08 11:08:23 +01:00
parent bf90f64641
commit cd96173afb
4 changed files with 10 additions and 4 deletions
@@ -206,8 +206,8 @@ export async function createRouter(
opts.saved = false;
// or keep undefined
}
if (req.query.created_after) {
const sinceEpoch = Date.parse(String(req.query.created_after));
if (req.query.createdAfter) {
const sinceEpoch = Date.parse(String(req.query.createdAfter));
if (isNaN(sinceEpoch)) {
throw new InputError('Unexpected date format');
}