aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/notifications/moderation-notifications.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/notifications/moderation-notifications.ts')
-rw-r--r--server/tests/api/notifications/moderation-notifications.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts
index 3e66e7517..e90640ad6 100644
--- a/server/tests/api/notifications/moderation-notifications.ts
+++ b/server/tests/api/notifications/moderation-notifications.ts
@@ -22,7 +22,6 @@ import {
22 cleanupTests, 22 cleanupTests,
23 createUser, 23 createUser,
24 generateUserAccessToken, 24 generateUserAccessToken,
25 getAccount,
26 getVideoCommentThreads, 25 getVideoCommentThreads,
27 getVideoIdFromUUID, 26 getVideoIdFromUUID,
28 immutableAssign, 27 immutableAssign,
@@ -157,8 +156,8 @@ describe('Test moderation notifications', function () {
157 156
158 await waitJobs(servers) 157 await waitJobs(servers)
159 158
160 const resAccount = await getAccount(servers[1].url, username + '@' + servers[0].host) 159 const account = await servers[1].accountsCommand.get({ accountName: username + '@' + servers[0].host })
161 await servers[1].abusesCommand.report({ accountId: resAccount.body.id, reason: 'super reason' }) 160 await servers[1].abusesCommand.report({ accountId: account.id, reason: 'super reason' })
162 161
163 await waitJobs(servers) 162 await waitJobs(servers)
164 await checkNewAccountAbuseForModerators(baseParams, username, 'presence') 163 await checkNewAccountAbuseForModerators(baseParams, username, 'presence')