Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DevNono committed Aug 23, 2023
1 parent c3f6555 commit 9d7373a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/controllers/admin/partners/removePartner.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Request, Response, NextFunction } from 'express';
import { hasPermission } from '../../../middlewares/authentication';
import { noContent, notFound, success } from '../../../utils/responses';
import { noContent, notFound } from '../../../utils/responses';
import { Error, Permission } from '../../../types';
import { fetchPartners, removePartner } from '../../../operations/partner';

Expand Down
4 changes: 1 addition & 3 deletions src/controllers/auth/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ export default [
),

// Controller
async (request: Request, response: Response, next: NextFunction) => {
return await loginAccount(request, response, next);
},
(request: Request, response: Response, next: NextFunction) => loginAccount(request, response, next),
];
2 changes: 0 additions & 2 deletions tests/admin/users/updateUser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ describe('PATCH /admin/users/:userId', () => {

const newAccount = registerMember();

console.log(newAccount);

const { body } = await request(app)
.patch(`/admin/users/${teamMember.id}`)
.send({
Expand Down
3 changes: 1 addition & 2 deletions tests/tournaments/getTournaments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import app from '../../src/app';
import { sandbox } from '../setup';
import * as tournamentOperations from '../../src/operations/tournament';
import database from '../../src/services/database';
import { Error, TournamentId } from '../../src/types';
import { Error } from '../../src/types';
import { createFakeTeam } from '../utils';

describe('GET /tournaments', () => {
Expand Down Expand Up @@ -41,7 +41,6 @@ describe('GET /tournaments', () => {
display: false,
},
});


await createFakeTeam({ members: tournaments[1].playersPerTeam, tournament: tournaments[1].id });

Expand Down

0 comments on commit 9d7373a

Please sign in to comment.