Skip to content

Commit 5457cfa

Browse files
committed
fix(mothership): type the integration test's row update
1 parent 98fb34c commit 5457cfa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/lib/desktop/application/executor.integration.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import { createDeferred } from '@sim/testing/helpers/deferred'
3737
import { generateId } from '@sim/utils/id'
3838
import { compareStrings } from '@sim/utils/string'
3939
import { eq, inArray, sql } from 'drizzle-orm'
40+
import type { PgUpdateSetSource } from 'drizzle-orm/pg-core'
4041
import { closeRedisConnection, getRedisClient } from '@/lib/core/config/redis'
4142
import type { DbTransaction } from '@/lib/db/types'
4243
import {
@@ -590,7 +591,7 @@ describe.runIf(Boolean(redisUrl))('desktop background executor protocol', () =>
590591
const desktop = await signedInDesktop()
591592
const run = await boundRun(desktop)
592593
const toolCallId = await pendingCall(run.runId)
593-
const setRow = (fields: Partial<typeof copilotAsyncToolCalls.$inferInsert>) =>
594+
const setRow = (fields: PgUpdateSetSource<typeof copilotAsyncToolCalls>) =>
594595
db
595596
.update(copilotAsyncToolCalls)
596597
.set(fields)

0 commit comments

Comments
 (0)