Update RoleService.ts

This commit is contained in:
syuilo 2025-05-22 16:18:54 +09:00
parent 4bcdc6639d
commit df1c448b3e
1 changed files with 2 additions and 1 deletions

View File

@ -423,7 +423,8 @@ export class RoleService implements OnApplicationShutdown, OnModuleInit {
const set = new Set<string>();
for (const v of vs) {
for (const type of v) {
set.add(type);
if (type.trim() === '') continue;
set.add(type.trim());
}
}
return [...set];