chore: clean up after adding createdAfter filter
Signed-off-by: Marek Libra <marek.libra@gmail.com>
This commit is contained in:
@@ -99,7 +99,6 @@ export class DatabaseNotificationsStore implements NotificationsStore {
|
||||
) => {
|
||||
const { user } = options;
|
||||
const isSQLite = this.db.client.config.client.includes('sqlite3');
|
||||
// const isPsql = this.db.client.config.client.includes('pg');
|
||||
|
||||
const query = this.db('notification').where('user', user);
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ export async function createRouter(
|
||||
// or keep undefined
|
||||
}
|
||||
if (req.query.created_after) {
|
||||
const sinceEpoch = Date.parse(req.query.created_after.toString());
|
||||
const sinceEpoch = Date.parse(String(req.query.created_after));
|
||||
if (isNaN(sinceEpoch)) {
|
||||
throw new InputError('Unexpected date format');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user