/[sudobot]/trunk/src/queues/unmute-job.ts
ViewVC logotype

Diff of /trunk/src/queues/unmute-job.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 235 by rakin, Mon Jul 29 17:29:08 2024 UTC revision 344 by rakin, Mon Jul 29 17:29:40 2024 UTC
# Line 1  Line 1 
 import { TextChannel } from "discord.js";  
1  import DiscordClient from "../client/Client";  import DiscordClient from "../client/Client";
2  import { unmute } from "../commands/moderation/UnmuteCommand";  import { unmute } from "../commands/moderation/UnmuteCommand";
3  import MuteRecord from "../models/MuteRecord";  import MuteRecord from "../models/MuteRecord";
# Line 49  export default async function unmuteJob( Line 48  export default async function unmuteJob(
48              console.log(e);                console.log(e);  
49                            
50              const muteRecord = await MuteRecord.findOne({              const muteRecord = await MuteRecord.findOne({
51                  where: {                  user_id,
52                      user_id,                  guild_id
                     guild_id  
                 }  
53              });              });
54            
55              if (muteRecord) {              if (muteRecord) {
56                  await muteRecord.destroy();                  await muteRecord.delete();
57              }              }
58          }          }
59      }      }

Legend:
Removed from v.235  
changed lines
  Added in v.344

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26