Skip to content

Commit 96ee881

Browse files
Merge pull request #48 from StreetSupport/feature/3017-create-location-specific-content-management-system
3017 - Fix eslint errors
2 parents 33ed362 + f9b9c59 commit 96ee881

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/controllers/organisationController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export const updateOrganisation = asyncHandler(async (req: Request, res: Respons
188188

189189
// Prepare update data using validated data
190190
// Exclude Key field - it should never be updated after creation
191+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- Key is intentionally destructured to omit it from the update payload
191192
const { Key, ...validatedDataWithoutKey } = validation.data;
192193
const updateData = {
193194
...validatedDataWithoutKey,

src/middleware/errorMiddleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { UnauthorizedError } from 'express-oauth2-jwt-bearer';
77
*
88
* Usage: Automatically catches errors from asyncHandler-wrapped route handlers
99
*/
10+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- next is required by Express error handler signature even if not used
1011
export const errorHandler: ErrorRequestHandler = (err, req, res, next) => {
1112
console.error('Error Handler Caught:', {
1213
error: err.message,

0 commit comments

Comments
 (0)