From 669d9d0fef9edddafbf92960cf71edaf490ca1e5 Mon Sep 17 00:00:00 2001 From: Hiroyuki Date: Sun, 12 Sep 2021 22:17:42 -0400 Subject: [PATCH] feat: update modlogs usernames --- src/commands/usermod.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/usermod.ts b/src/commands/usermod.ts index 510be81..5572355 100644 --- a/src/commands/usermod.ts +++ b/src/commands/usermod.ts @@ -57,6 +57,7 @@ export default class Usermod extends Command { username: value, homepath: `/home/${value}`, }); + await this.client.db.Moderation.updateMany({ username: account.username }, { username: value }); await this.client.commands.get('notify') .run(message, [value, ...`Your username has been successfully changed. Remember to use \`ssh ${value}@cloud.libraryofcode.org\` when logging in.`.split(' ')]); } catch (error) {