feat: implement admin API endpoint to suspend users (#13)#63
Merged
Annotations
10 errors and 3 warnings
|
Linting:
src/models/Delivery.ts#L10
Delete `····`
|
|
Linting:
src/models/Delivery.ts#L9
Delete `··`
|
|
Linting:
src/models/Delivery.ts#L7
Delete `····`
|
|
Linting:
src/models/Delivery.ts#L6
Delete `······`
|
|
Linting:
src/middleware/authenticate.ts#L57
Replace `'Server·misconfiguration:·JWT·secret·not·set.',·StatusCodes.INTERNAL_SERVER_ERROR` with `⏎········'Server·misconfiguration:·JWT·secret·not·set.',⏎········StatusCodes.INTERNAL_SERVER_ERROR,⏎······`
|
|
Linting:
src/middleware/authenticate.ts#L36
Replace `⏎··req:·Request,⏎··_res:·Response,⏎··next:·NextFunction,⏎` with `req:·Request,·_res:·Response,·next:·NextFunction`
|
|
Linting:
src/middleware/authenticate.ts#L10
ES2015 module syntax is preferred over namespaces
|
|
Linting:
src/controllers/adminController.ts#L54
Replace `⏎········'"ban"·must·be·a·boolean·value.',⏎········StatusCodes.BAD_REQUEST,⏎······` with `'"ban"·must·be·a·boolean·value.',·StatusCodes.BAD_REQUEST`
|
|
Linting:
src/controllers/adminController.ts#L47
Replace `⏎········'A·reason·is·required·to·suspend·or·ban·a·user.',⏎········StatusCodes.BAD_REQUEST,⏎······` with `'A·reason·is·required·to·suspend·or·ban·a·user.',·StatusCodes.BAD_REQUEST`
|
|
Linting:
src/controllers/adminController.ts#L36
Replace `⏎········'Authentication·required.',⏎········StatusCodes.UNAUTHORIZED,⏎······` with `'Authentication·required.',·StatusCodes.UNAUTHORIZED`
|
|
Complete job
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Linting:
src/models/User.ts#L95
Missing return type on function
|
|
Linting:
src/models/Delivery.ts#L173
Missing return type on function
|
background
wait
wait-all
cancel
parallel
Loading