mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
roles -> role, null -> COMMENTER for user roles
This commit is contained in:
@@ -168,7 +168,7 @@ describe('services.UsersService', () => {
|
||||
it('should not ignore a staff member', async () => {
|
||||
const user = mockUsers[0];
|
||||
const usersToIgnore = [mockUsers[1]];
|
||||
await UsersService.addRoleToUser(usersToIgnore[0].id, 'STAFF');
|
||||
await UsersService.setRole(usersToIgnore[0].id, 'STAFF');
|
||||
|
||||
try {
|
||||
await UsersService.ignoreUsers(user.id, usersToIgnore.map((u) => u.id));
|
||||
|
||||
Reference in New Issue
Block a user