From 389d8387ee7fa5ed869900eb4db75071b050e59f Mon Sep 17 00:00:00 2001 From: mightypanders Date: Thu, 4 May 2023 23:38:20 +0200 Subject: [PATCH] remove useraccount handler --- server/handler/addUserAccount.ts | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 server/handler/addUserAccount.ts diff --git a/server/handler/addUserAccount.ts b/server/handler/addUserAccount.ts deleted file mode 100644 index 2c1003c..0000000 --- a/server/handler/addUserAccount.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { User as DiscordUser } from "discord.js"; -import { JellyfinHandler } from "../../jellyfin/handler"; -import { logger } from "../logger"; - -/* -export async function addUser(discordUser: DiscordUser, jf: JellyfinHandler, guildId: string, requestId: string): Promise { - if (!jf.isUserAlreadyPresent(discordUser, guildId, requestId)) { - logger.info(`User ${discordUser.username} is already registered on ${jf.ServerName}`) - return - } - const jfUserAccount = await jf.createUserAccountForDiscordUser(discordUser, guildId, requestId) - if (jfUserAccount) { - await jf.addPermissionsToUserAccount(jfUserAccount,guildId,requestId) - } - return -} -*/