Keep the legacy question fixture payload type-safe

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-09-29 12:28:36 -05:00
1 parent f308b14dae
commit bb56af7fbd
1 file changed
+2 -2
@@ -411,8 +411,8 @@ describeEmbeddedPostgres("native question bridge", () => {
input.questions[0]!.customAnswer = { enabled: true };
const interaction = await projectNativeRuntimeRequest({ db, binding: binding(), event });
if (mode === "legacy") {
const payload = { ...interaction!.payload } as Record<string, unknown>;
delete payload.questionSet;
const payload = { ...interaction!.payload };
if ("questionSet" in payload) delete payload.questionSet;
await db.update(issueThreadInteractions).set({ payload }).where(eq(issueThreadInteractions.id, interaction!.id));
}
const service = issueThreadInteractionService(db);