remove console log

This commit is contained in:
cupcakearmy 2020-09-20 17:44:30 +02:00
parent c0d5242763
commit 2e4ec02aa7
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

View File

@ -12,9 +12,7 @@ export async function getLogsBetweenDates({ start, end, host }) {
const where = { const where = {
$and: [{ timestamp: { $gt: start } }, { timestamp: { $lt: end } }], $and: [{ timestamp: { $gt: start } }, { timestamp: { $lt: end } }],
} }
console.log(host)
if (host) where.host = host if (host) where.host = host
console.log('Where', where)
return await Logs.find(where) return await Logs.find(where)
} }