fix: bun tsconfig and check response

This commit is contained in:
John Yeo
2026-03-10 15:35:48 +00:00
parent d671abfab0
commit 89e6e86eb0
3 changed files with 6 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ export const handleCheck = createRoute({
return c.json({
...transformedResponse,
preview,
lock_key: body.lock?.key ?? undefined,
// lock_key: body.lock?.key ?? undefined,
});
},
});

View File

@@ -133,7 +133,9 @@ export const addTaskToQueue = async <T extends keyof Payloads>({
? Math.min(Math.floor(delayMs / 1000), 900)
: undefined;
const messageDeduplicationId = messageId ?? generateId("dedup");
const messageDeduplicationId = Bun.hash(
messageId ?? generateId("dedup"),
).toString();
const command = new SendMessageCommand({
QueueUrl: sqsQueueUrl!,

View File

@@ -9,7 +9,8 @@
"moduleResolution": "bundler",
"module": "Preserve",
"typeRoots": ["./node_modules/@types", "../node_modules/@types"],
"types": ["bun", "node"],
// "declaration": true,
"jsx": "react-jsx",
"rootDir": ".",