From a8236e89cff40c7112fd1980007d201c0f91b16b Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Fri, 21 Oct 2022 16:43:43 +0800 Subject: [PATCH] style: lf --- scripts/delete.ts | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/scripts/delete.ts b/scripts/delete.ts index bba793a..dcab350 100644 --- a/scripts/delete.ts +++ b/scripts/delete.ts @@ -1,20 +1,20 @@ -import { USERAGENT } from "../constant.ts"; - -const [key, ...uuids] = Deno.args; -if (!key || uuids.length === 0) { - console.log("Usage: delete.ts "); - Deno.exit(1); -} - -for (const uuid of uuids) { - console.log("Deleting", uuid); - const resp = await fetch(`https://stat.ink/api/v3/battle/${uuid}`, { - method: "DELETE", - headers: { - "Authorization": `Bearer ${key}`, - "User-Agent": USERAGENT, - }, - }); - - console.log(resp.status); -} +import { USERAGENT } from "../constant.ts"; + +const [key, ...uuids] = Deno.args; +if (!key || uuids.length === 0) { + console.log("Usage: delete.ts "); + Deno.exit(1); +} + +for (const uuid of uuids) { + console.log("Deleting", uuid); + const resp = await fetch(`https://stat.ink/api/v3/battle/${uuid}`, { + method: "DELETE", + headers: { + "Authorization": `Bearer ${key}`, + "User-Agent": USERAGENT, + }, + }); + + console.log(resp.status); +}