We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c83030 commit 93acba1Copy full SHA for 93acba1
api/src/services/incident-service.ts
@@ -146,7 +146,7 @@ export class IncidentService {
146
.innerJoin("incident_types", "incident_types.id", "incidents.incident_type_id")
147
.innerJoin("incident_statuses", "incident_statuses.code", "incidents.status_code")
148
.innerJoin("departments", "departments.code", "incidents.department_code")
149
- .whereRaw(`LOWER("incident_users_view"."user_email") = '${email.toLowerCase()}'`)
+ .whereRaw(`LOWER("incident_users_view"."user_email") = '${email.toLowerCase()}'`) // limit to supervisor only
150
.select(
151
"incidents.*",
152
"incident_types.name as incident_type_name",
0 commit comments