fix(vote): 설문 게시자를 장수명으로 저장한다

인증 계정 ID나 계정 표시명 대신 getMyGeneral로 확정한 현재 장수명을 opener_name에 저장한다. 서로 다른 세 identity를 둔 회귀 테스트로 저장 경계를 고정한다.
This commit is contained in:
2026-08-24 08:04:14 +00:00
parent 1e79611089
commit 55a9c87610
2 changed files with 5 additions and 5 deletions
+1 -2
View File
@@ -416,7 +416,6 @@ export const voteRouter = router({
)
.mutation(async ({ ctx, input }) => {
const general = await getMyGeneral(ctx);
const openerName = ctx.auth?.user.username ?? general.name;
const options = normalizeOptions(input.options);
if (options.length === 0) {
throw new TRPCError({ code: 'BAD_REQUEST', message: '항목이 없습니다.' });
@@ -468,7 +467,7 @@ export const voteRouter = router({
${multipleOptions},
${input.revealMode},
${general.id},
${openerName},
${general.name},
${gameTime.now},
${gameTime.tick === null ? null : BigInt(gameTime.tick)},
${endAt},