From 310b5219b38427f0c2c7ba57225afdd8f3064380 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Jul 2020 15:51:46 +0200 Subject: Add new abuses tests --- server/controllers/api/abuse.ts | 4 ++-- server/controllers/api/users/my-history.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'server/controllers/api') diff --git a/server/controllers/api/abuse.ts b/server/controllers/api/abuse.ts index 38808021d..04a0c06e3 100644 --- a/server/controllers/api/abuse.ts +++ b/server/controllers/api/abuse.ts @@ -100,7 +100,7 @@ async function updateAbuse (req: express.Request, res: express.Response) { return abuse.save({ transaction: t }) }) - // Do not send the delete to other instances, we updated OUR copy of this video abuse + // Do not send the delete to other instances, we updated OUR copy of this abuse return res.type('json').status(204).end() } @@ -112,7 +112,7 @@ async function deleteAbuse (req: express.Request, res: express.Response) { return abuse.destroy({ transaction: t }) }) - // Do not send the delete to other instances, we delete OUR copy of this video abuse + // Do not send the delete to other instances, we delete OUR copy of this abuse return res.type('json').status(204).end() } diff --git a/server/controllers/api/users/my-history.ts b/server/controllers/api/users/my-history.ts index 77a15e5fc..dc915977f 100644 --- a/server/controllers/api/users/my-history.ts +++ b/server/controllers/api/users/my-history.ts @@ -50,7 +50,5 @@ async function removeUserHistory (req: express.Request, res: express.Response) { return UserVideoHistoryModel.removeUserHistoryBefore(user, beforeDate, t) }) - // Do not send the delete to other instances, we delete OUR copy of this video abuse - return res.type('json').status(204).end() } -- cgit v1.2.3