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 } }> {