Fix linting errors

This commit is contained in:
Dries Augustyns
2025-12-04 12:46:39 +01:00
parent 73a1cdfefa
commit 04634a447b
34 changed files with 517 additions and 534 deletions
+8 -8
View File
@@ -15,7 +15,7 @@ export class Segments {
@Get('')
@Middleware([requireAuth])
@CatchAsync
public async list(req: Request, res: Response, next: NextFunction) {
public async list(req: Request, res: Response, _next: NextFunction) {
const auth = res.locals.auth as AuthResponse;
const segments = await SegmentService.list(auth.projectId!);
@@ -30,7 +30,7 @@ export class Segments {
@Get(':id')
@Middleware([requireAuth])
@CatchAsync
public async get(req: Request, res: Response, next: NextFunction) {
public async get(req: Request, res: Response, _next: NextFunction) {
const auth = res.locals.auth as AuthResponse;
const segmentId = req.params.id;
@@ -50,7 +50,7 @@ export class Segments {
@Get(':id/contacts')
@Middleware([requireAuth])
@CatchAsync
public async getContacts(req: Request, res: Response, next: NextFunction) {
public async getContacts(req: Request, res: Response, _next: NextFunction) {
const auth = res.locals.auth as AuthResponse;
const segmentId = req.params.id;
const page = parseInt(req.query.page as string) || 1;
@@ -72,7 +72,7 @@ export class Segments {
@Post('')
@Middleware([requireAuth])
@CatchAsync
public async create(req: Request, res: Response, next: NextFunction) {
public async create(req: Request, res: Response, _next: NextFunction) {
const auth = res.locals.auth as AuthResponse;
const {name, description, condition, trackMembership} = req.body;
@@ -101,7 +101,7 @@ export class Segments {
@Patch(':id')
@Middleware([requireAuth])
@CatchAsync
public async update(req: Request, res: Response, next: NextFunction) {
public async update(req: Request, res: Response, _next: NextFunction) {
const auth = res.locals.auth as AuthResponse;
const segmentId = req.params.id;
const {name, description, condition, trackMembership} = req.body;
@@ -131,7 +131,7 @@ export class Segments {
@Delete(':id')
@Middleware([requireAuth])
@CatchAsync
public async delete(req: Request, res: Response, next: NextFunction) {
public async delete(req: Request, res: Response, _next: NextFunction) {
const auth = res.locals.auth as AuthResponse;
const segmentId = req.params.id;
@@ -151,7 +151,7 @@ export class Segments {
@Post(':id/compute')
@Middleware([requireAuth])
@CatchAsync
public async compute(req: Request, res: Response, next: NextFunction) {
public async compute(req: Request, res: Response, _next: NextFunction) {
const auth = res.locals.auth as AuthResponse;
const segmentId = req.params.id;
@@ -171,7 +171,7 @@ export class Segments {
@Post(':id/refresh')
@Middleware([requireAuth])
@CatchAsync
public async refresh(req: Request, res: Response, next: NextFunction) {
public async refresh(req: Request, res: Response, _next: NextFunction) {
const auth = res.locals.auth as AuthResponse;
const segmentId = req.params.id;