Skip to content

Commit 2fcae11

Browse files
committed
delete async from onComplete
1 parent d74d1d4 commit 2fcae11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/convex/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export const recordUploadMetadata = rag.defineOnComplete<DataModel>(
417417
await ctx.db.insert("fileMetadata", metadata);
418418
} else if (error) {
419419
console.debug("adding file failed", entry, error);
420-
await rag.delete(ctx, { entryId: entry.entryId });
420+
await rag.deleteAsync(ctx, { entryId: entry.entryId });
421421
}
422422
}
423423
);

0 commit comments

Comments
 (0)