summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/RoleService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2024-01-22 17:44:03 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2024-01-22 17:44:03 +0900
commit4af3640bd327f62ababdaa20105ddb82b4a969a7 (patch)
tree8d609f63b614d478260358bf92a915f781e3fbb5 /packages/backend/src/core/RoleService.ts
parentperf(reversi): improve performance of reversi backend (diff)
downloadsharkey-4af3640bd327f62ababdaa20105ddb82b4a969a7.tar.gz
sharkey-4af3640bd327f62ababdaa20105ddb82b4a969a7.tar.bz2
sharkey-4af3640bd327f62ababdaa20105ddb82b4a969a7.zip
fix lint
Diffstat (limited to 'packages/backend/src/core/RoleService.ts')
-rw-r--r--packages/backend/src/core/RoleService.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/core/RoleService.ts b/packages/backend/src/core/RoleService.ts
index d354faa7c2..2c1a5280b8 100644
--- a/packages/backend/src/core/RoleService.ts
+++ b/packages/backend/src/core/RoleService.ts
@@ -177,9 +177,10 @@ export class RoleService implements OnApplicationShutdown, OnModuleInit {
case 'userRoleAssigned': {
const cached = this.roleAssignmentByUserIdCache.get(body.userId);
if (cached) {
- cached.push({
+ cached.push({ // TODO: このあたりのデシリアライズ処理は各modelファイル内に関数としてexportしたい
...body,
expiresAt: body.expiresAt ? new Date(body.expiresAt) : null,
+ user: null, // joinなカラムは通常取ってこないので
});
}
break;