mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-08 00:54:38 +02:00
Keep the legacy question fixture payload type-safe
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user