Skip to content

Commit 55ea77f

Browse files
committed
fix lint issues
1 parent 1cde3ea commit 55ea77f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions/src/controllers/roomController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export async function getAnalytics(req: Request, res: Response): Promise<void> {
7878
if (!from || !to) {
7979
res.status(400).json({
8080
error: 'Both time range parameters are required',
81-
message: 'Please provide ISO string timestamps for both from/to (or startTime/endTime) parameters'
81+
message: 'Please provide ISO string timestamps for both from/to (or startTime/endTime) parameters',
8282
})
8383
return
8484
}
@@ -90,15 +90,15 @@ export async function getAnalytics(req: Request, res: Response): Promise<void> {
9090
if (isNaN(fromDate.getTime()) || isNaN(toDate.getTime())) {
9191
res.status(400).json({
9292
error: 'Invalid date format',
93-
message: 'Both "from" and "to" must be valid ISO string timestamps'
93+
message: 'Both "from" and "to" must be valid ISO string timestamps',
9494
})
9595
return
9696
}
9797

9898
if (fromDate >= toDate) {
9999
res.status(400).json({
100100
error: 'Invalid time range',
101-
message: '"from" must be earlier than "to"'
101+
message: '"from" must be earlier than "to"',
102102
})
103103
return
104104
}

0 commit comments

Comments
 (0)