X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Fusers%2Findex.ts;h=96366d68c28b9d074aab88ab8f6926d7174c5532;hb=cb0eda5602a21d1626a7face32de6153ed07b5f9;hp=5a5a12e82971935716e8c126a82df7d1aac0f198;hpb=3a380e9a71037b0fcbace58a7599221e7cc76e20;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index 5a5a12e82..96366d68c 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts @@ -309,7 +309,7 @@ async function changeUserBlock (res: express.Response, user: MUserAccountDefault await user.save({ transaction: t }) }) - await Emailer.Instance.addUserBlockJob(user, block, reason) + Emailer.Instance.addUserBlockJob(user, block, reason) auditLogger.update(getAuditIdFromRes(res), new UserAuditView(user.toFormattedJSON()), oldUserAuditView) }