diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/users/my-history.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/users/my-history.ts b/server/controllers/api/users/my-history.ts index b30d3aec2..7025c0ff1 100644 --- a/server/controllers/api/users/my-history.ts +++ b/server/controllers/api/users/my-history.ts | |||
@@ -48,7 +48,7 @@ async function removeUserHistory (req: express.Request, res: express.Response) { | |||
48 | const beforeDate = req.body.beforeDate || null | 48 | const beforeDate = req.body.beforeDate || null |
49 | 49 | ||
50 | await sequelizeTypescript.transaction(t => { | 50 | await sequelizeTypescript.transaction(t => { |
51 | return UserVideoHistoryModel.removeHistoryBefore(user, beforeDate, t) | 51 | return UserVideoHistoryModel.removeUserHistoryBefore(user, beforeDate, t) |
52 | }) | 52 | }) |
53 | 53 | ||
54 | // Do not send the delete to other instances, we delete OUR copy of this video abuse | 54 | // Do not send the delete to other instances, we delete OUR copy of this video abuse |