VerifyTemAccess Middleware
This commit is contained in:
1 parent
95b832c1c6
commit
78a2e5d106
4 files changed
+17
-15
No files matched your search
@@ -76,7 +76,7 @@ const getChecksByMonitor = async ({
|
||||
const matchStage = {
|
||||
monitorId: ObjectId.createFromHexString(monitorId),
|
||||
...(typeof status !== "undefined" && { status }),
|
||||
...(typeof ack !== "undefined" && { ack: ack === "true" ? true : false }),
|
||||
...(typeof ack !== "undefined" && { ack: ack === "true" }),
|
||||
...(dateRangeLookup[dateRange] && {
|
||||
createdAt: {
|
||||
$gte: dateRangeLookup[dateRange],
|
||||
@@ -168,7 +168,7 @@ const getChecksByTeam = async ({
|
||||
const matchStage = {
|
||||
teamId: ObjectId.createFromHexString(teamId),
|
||||
status: status,
|
||||
...(typeof ack !== "undefined" && { ack: ack === "true" ? true : false }),
|
||||
...(typeof ack !== "undefined" && { ack: ack === "true" }),
|
||||
...(dateRangeLookup[dateRange] && {
|
||||
createdAt: {
|
||||
$gte: dateRangeLookup[dateRange],
|
||||
|
||||
Reference in new issue
Block a user