Skip to content

Commit

Permalink
chore: unfinished feature, restoring bot.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhuh committed Sep 10, 2023
1 parent ab6ce5b commit 04ce35a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { LogService } from './services/logService';
import { PermissionService } from './services/permissionService';
import { ReactionHandler } from './services/reactionHandler';
import { createConnection } from 'typeorm';
import { Category, GuildConfig, JoinRole, LinkedRoles, ReactMessage, ReactRole, } from './database/entities';
import { Category, GuildConfig, JoinRole, ReactMessage, ReactRole, } from './database/entities';

import * as Discord from 'discord.js';
import { DELETE_JOIN_ROLE, GET_GUILD_JOIN_ROLES, } from './database/queries/joinRole.query';
Expand Down Expand Up @@ -129,7 +129,7 @@ export default class RoleBot extends Discord.Client {
type: 'postgres',
url: config.POSTGRES_URL,
synchronize: config.SYNC_DB,
entities: [ReactMessage, ReactRole, Category, GuildConfig, JoinRole, LinkedRoles],
entities: [ReactMessage, ReactRole, Category, GuildConfig, JoinRole],
})
.then(() => this.log.debug(`Successfully connected to postgres DB.`))
.catch((e) => this.log.critical(`Failed to connect to postgres\n${e}`));
Expand Down

0 comments on commit 04ce35a

Please sign in to comment.