From 18a275ecb1c0fb320089468d1987bf27ccd8b24d Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 21 Nov 2023 17:44:46 +0000 Subject: [PATCH] Removing unused function. --- packages/server/src/utilities/workerRequests.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/server/src/utilities/workerRequests.ts b/packages/server/src/utilities/workerRequests.ts index 81db7df3c3..56ceff226c 100644 --- a/packages/server/src/utilities/workerRequests.ts +++ b/packages/server/src/utilities/workerRequests.ts @@ -155,18 +155,6 @@ export async function readGlobalUser(ctx: Ctx): Promise { return checkResponse(response, "get user", { ctx }) } -export async function createAdminUser( - email: string, - password: string, - tenantId: string -) { - const response = await fetch( - checkSlashesInUrl(env.WORKER_URL + "/api/global/users/init"), - request(undefined, { method: "POST", body: { email, password, tenantId } }) - ) - return checkResponse(response, "create admin user") -} - export async function getChecklist(): Promise<{ adminUser: { checked: boolean } }> {