mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-06 15:52:22 +01:00
test(server): include company in saved review outcome signal
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
0bb940250e
commit
b2d69dc66b
1 file changed
+1
-1
@@ -363,7 +363,7 @@ describeEmbeddedPostgres("tool gateway service", () => {
|
||||
}
|
||||
async function savedOutcome(pending: Awaited<ReturnType<typeof request>>, source = db,
|
||||
status: "executed" | "failed" | "expired" | "cancelled" = "executed") {
|
||||
await writeToolReviewChange(source, async tx => {
|
||||
await writeToolReviewChange(source, pending.companyId, async tx => {
|
||||
await tx.update(toolInvocations).set({ status: status === "executed" ? "succeeded" : "failed",
|
||||
errorCode: status === "executed" ? null : "saved_failure", errorMessage: null,
|
||||
resultSummary: { summary: "Durable result" }, completedAt: new Date() })
|
||||
|
||||
Reference in new issue
Block a user