feat: 오픈 게임 취소와 유산 정산 경로 추가
별도 최고위험 권한으로 실행되는 원자적 취소 작업을 추가한다. 버려진 게임과 장수 기록의 보존·삭제 옵션, 오픈 원금 전액 환급 및 획득 포인트 보전율, 취소 상태와 관리자·과거기록 UI를 함께 반영한다.
This commit is contained in:
@@ -327,6 +327,11 @@ integration('generic general creation through the durable turn daemon', () => {
|
||||
})
|
||||
).toMatchObject({ value: 7351 });
|
||||
expect(await db.inheritancePoint.count({ where: { userId } })).toBe(1);
|
||||
await expect(
|
||||
db.gameInheritanceBaseline.findUniqueOrThrow({
|
||||
where: { serverId_userId: { serverId: profile, userId } },
|
||||
})
|
||||
).resolves.toMatchObject({ openingPoint: 10_351, source: 'FIRST_ACTIVITY' });
|
||||
expect(await db.inheritanceLog.count({ where: { userId } })).toBe(9);
|
||||
expect(
|
||||
await db.inheritanceLog.findFirst({
|
||||
|
||||
Reference in New Issue
Block a user