feat: 즉시 외교 응답의 양방향 관계 전이를 감사 기록에 연결

This commit is contained in:
Hide_D committed 2026-09-16 05:54:04 +00:00
1 parent b9d9b63b14
commit bfe9ef479c
4 files changed
+229 -7

No files matched your search

+2 -1
View File
@@ -371,7 +371,7 @@ export const messagesRouter = router({
eventType: 'messages.respond.diplomatic',
payload: input,
actorUserId: ctx.auth?.user.id,
execute: async (transaction) => {
execute: async (transaction, auditInput) => {
const transactionContext = { ...ctx, db: transaction, changeJournal };
const transactionGeneral = ownsChangeJournal
? await getOwnedGeneral(transactionContext, input.generalId)
@@ -379,6 +379,7 @@ export const messagesRouter = router({
const result = await respondToDiplomaticMessage({
db: transaction,
actor: transactionGeneral,
auditInput,
messageId: input.messageId,
response: input.response,
});