feat(backend): 7日間運営のアクティビティがないサーバを自動的に招待制にする (#14746)
* feat(backend): 7日間運営のアクティビティがないサーバを自動的に招待制にする * fix RoleService. * fix * fix * fix * add test and fix * fix * fix CHANGELOG.md * fix test
This commit is contained in:
		| @@ -71,13 +71,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 					break; | ||||
| 				} | ||||
| 				case 'moderator': { | ||||
| 					const moderatorIds = await this.roleService.getModeratorIds(false); | ||||
| 					const moderatorIds = await this.roleService.getModeratorIds({ includeAdmins: false }); | ||||
| 					if (moderatorIds.length === 0) return []; | ||||
| 					query.where('user.id IN (:...moderatorIds)', { moderatorIds: moderatorIds }); | ||||
| 					break; | ||||
| 				} | ||||
| 				case 'adminOrModerator': { | ||||
| 					const adminOrModeratorIds = await this.roleService.getModeratorIds(); | ||||
| 					const adminOrModeratorIds = await this.roleService.getModeratorIds({ includeAdmins: true }); | ||||
| 					if (adminOrModeratorIds.length === 0) return []; | ||||
| 					query.where('user.id IN (:...adminOrModeratorIds)', { adminOrModeratorIds: adminOrModeratorIds }); | ||||
| 					break; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 おさむのひと
					おさむのひと