Skip to content

Commit

Permalink
hot fix: force login existing client
Browse files Browse the repository at this point in the history
  • Loading branch information
insertish committed Dec 2, 2023
1 parent 0b2de0a commit 5daa409
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/client/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ export default class ClientController {
*/
createClient(session: PrivateSession) {
if (typeof session === "string") throw "Bot login not supported";
if (this.#clients.get(session.user_id)) throw "User client already exists";
// if (this.#clients.get(session.user_id)) throw "User client already exists";
this.#clients.delete(session.user_id);
// TODO: yeah whatever

const client = new Client({
baseURL: CONFIGURATION.DEFAULT_API_URL,
Expand Down

0 comments on commit 5daa409

Please sign in to comment.