Skip to content

Commit 53e13ee

Browse files
committed
small fixes
1 parent ea20f88 commit 53e13ee

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

apps/proxy/src/events/queueEvent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export async function queueEvent(request: Request, env: Env): Promise<Response>
2424
const anyBody = await request.json();
2525
const body = SendEventBodySchema.safeParse(anyBody);
2626
if (!body.success) {
27+
fromZodError(body.error);
2728
return json(
2829
{ error: generateErrorMessage(body.error.issues) },
2930
{

packages/cli-v3/src/workers/prod/entry-point.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ class ProdWorker {
226226
await this.#prepareForWait("WAIT_FOR_TASK", willCheckpointAndRestore);
227227

228228
if (willCheckpointAndRestore) {
229-
// TODO: where's the timeout?
230229
// We need to replay this on next connection if we don't receive RESUME_AFTER_DEPENDENCY within a reasonable time
231230
if (!this.waitForTaskReplay) {
232231
this.waitForTaskReplay = {
@@ -398,7 +397,7 @@ class ProdWorker {
398397
// Workers with lazy attempt support set their friendly ID here
399398
this.attemptFriendlyId = message.execution.attempt.id;
400399
});
401-
400+
402401
backgroundWorker.onWaitForDuration.attach(async (message) => {
403402
logger.log("onWaitForDuration", { ...message, drift: Date.now() - message.now });
404403

packages/core/src/v3/zodSocket.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,9 @@ export class ZodSocketMessageHandler<TRPCCatalog extends ZodSocketMessageCatalog
169169
payload: messageWithVersion,
170170
});
171171

172-
// FIXME
173172
return {
174173
success: false,
175-
reason: (parsedPayload.error instanceof ZodError
176-
? fromZodError(parsedPayload.error)
177-
: parsedPayload.error
178-
)?.toString(),
174+
reason: fromZodError(parsedPayload.error).toString(),
179175
};
180176
}
181177

0 commit comments

Comments
 (0)