From cf0ac04b647008c8fe38b3a858bf70c9f277d7e5 Mon Sep 17 00:00:00 2001 From: garfield69 Date: Thu, 25 Jan 2024 17:16:19 +1300 Subject: [PATCH] Update redeliver-failed-deliveries.js --- .github/workflows/scripts/redeliver-failed-deliveries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scripts/redeliver-failed-deliveries.js b/.github/workflows/scripts/redeliver-failed-deliveries.js index d79253681..818fb1459 100644 --- a/.github/workflows/scripts/redeliver-failed-deliveries.js +++ b/.github/workflows/scripts/redeliver-failed-deliveries.js @@ -1,7 +1,7 @@ // This script uses GitHub's Octokit SDK to make API requests. For more information, see "[AUTOTITLE](/rest/guides/scripting-with-the-rest-api-and-javascript)." const { App, Octokit } = require("octokit"); -const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); +const sleep = ms => new Promise(r => setTimeout(r, ms)); const secondDelivery = true; //