Skip to content

Commit 997185c

Browse files
committed
findUnique -> findFirst
1 parent bd8efa7 commit 997185c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal-packages/run-engine/src/engine/systems/executionSnapshotSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export async function getExecutionSnapshotsSince(
195195
sinceSnapshotId: string
196196
): Promise<EnhancedExecutionSnapshot[]> {
197197
// Find the createdAt of the sinceSnapshotId
198-
const sinceSnapshot = await prisma.taskRunExecutionSnapshot.findUnique({
198+
const sinceSnapshot = await prisma.taskRunExecutionSnapshot.findFirst({
199199
where: { id: sinceSnapshotId },
200200
select: { createdAt: true },
201201
});

0 commit comments

Comments
 (0)