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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user