Skip to content

Commit

Permalink
Fix sql error on GuildSyncService@roleCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
microwavekonijn committed Nov 5, 2021
1 parent 67b346b commit b12da22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discord/services/guild-sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class GuildSyncService implements OnModuleInit {
@DiscordEvent('guildRoleCreate')
async roleCreate({role}: GatewayClientEvents.GuildRoleCreate) {
await this.entityManager.createQueryBuilder(Role)
.insert({id: role.id, guild_id: role.guildId, unavailable: false})
.insert({id: role.id, guild_id: role.guildId})
.execute();
}

Expand Down

0 comments on commit b12da22

Please sign in to comment.