Skip to content

Commit

Permalink
SURE DUDE
Browse files Browse the repository at this point in the history
  • Loading branch information
catdevnull committed Dec 23, 2024
1 parent 97e088d commit f6512c2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions trigger/scrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,7 @@ export const scrapAerolineasTask = schemaTask({
id: "scrap-aerolineas",
maxDuration: 6000,
schema: z.object({
date: z.preprocess(
(str) =>
typeof str === "string"
? parse(str, "yyyy-MM-dd", new Date(), {
in: tz("America/Argentina/Buenos_Aires"),
})
: () => {
throw new Error("bleeh");
},
z.date()
),
date: z.coerce.date(),
}),
run: async (payload, { ctx }) => {
const queue = new PQueue({ concurrency: 5 });
Expand Down

0 comments on commit f6512c2

Please sign in to comment.