diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-16 12:00:56 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-16 12:00:56 +0900 |
| commit | 24437a04d49bb720ac632959270e072f072707c6 (patch) | |
| tree | 677d96f47119be60219098f0bbb01801606e58d9 /packages/backend/src/core/AccountMoveService.ts | |
| parent | perf(backend): createdAtをidから取得するように & 無駄なDateイ... (diff) | |
| download | sharkey-24437a04d49bb720ac632959270e072f072707c6.tar.gz sharkey-24437a04d49bb720ac632959270e072f072707c6.tar.bz2 sharkey-24437a04d49bb720ac632959270e072f072707c6.zip | |
fix of 1fa1d31696
Diffstat (limited to 'packages/backend/src/core/AccountMoveService.ts')
| -rw-r--r-- | packages/backend/src/core/AccountMoveService.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/backend/src/core/AccountMoveService.ts b/packages/backend/src/core/AccountMoveService.ts index ed2891113b..350aa6ba24 100644 --- a/packages/backend/src/core/AccountMoveService.ts +++ b/packages/backend/src/core/AccountMoveService.ts @@ -180,7 +180,7 @@ export class AccountMoveService { { muteeId: dst.id, expiresAt: IsNull() }, ).then(mutings => mutings.map(muting => muting.muterId)); - const newMutings: Map<string, { muterId: string; muteeId: string; createdAt: Date; expiresAt: Date | null; }> = new Map(); + const newMutings: Map<string, { muterId: string; muteeId: string; expiresAt: Date | null; }> = new Map(); // 重複しないようにIDを生成 const genId = (): string => { @@ -194,7 +194,6 @@ export class AccountMoveService { if (existingMutingsMuterUserIds.includes(muting.muterId)) continue; // skip if already muted indefinitely newMutings.set(genId(), { ...muting, - createdAt: new Date(), muteeId: dst.id, }); } @@ -228,7 +227,7 @@ export class AccountMoveService { }, }).then(memberships => memberships.map(membership => membership.userListId)); - const newMemberships: Map<string, { createdAt: Date; userId: string; userListId: string; userListUserId: string; }> = new Map(); + const newMemberships: Map<string, { userId: string; userListId: string; userListUserId: string; }> = new Map(); // 重複しないようにIDを生成 const genId = (): string => { @@ -241,7 +240,6 @@ export class AccountMoveService { for (const membership of oldMemberships) { if (existingUserListIds.includes(membership.userListId)) continue; // skip if dst exists in this user's list newMemberships.set(genId(), { - createdAt: new Date(), userId: dst.id, userListId: membership.userListId, userListUserId: membership.userListUserId, |