Runs every 1 hrs
Fork
1
2
3
4
5
6
7
8
9
10
import { fulfillReservationRequests } from "https://esm.town/v/alp/fulfillReservationRequests";
export const fulfillReservationRequestsCRON = async () => {
// Try to fulfill 3 times to prevent against random failures. If a request is
// successful, it won't be fulfilled again (and even if it does, Resy rejects the request
// most of the time as it won't let you book over an existing reservation).
await fulfillReservationRequests();
await fulfillReservationRequests();
await fulfillReservationRequests();
};
๐Ÿ‘† This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data โ€” all from the browser.