remove team id from monitor controller/db methods, standardize parameters

This commit is contained in:
Alex Holliday committed 2025-06-13 11:49:03 +08:00
1 parent 4168c86734
commit b9fbfd2a25
6 files changed
+138 -173

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ class NotificationController {
getNotificationsByTeamId = async (req, res, next) => {
try {
const notifications = await this.db.getNotificationsByTeamId(req.params.teamId);
const notifications = await this.db.getNotificationsByTeamId(req.user.teamId);
return res.success({
msg: "Notifications fetched successfully",
data: notifications,