Skip to content

Commit 1b14561

Browse files
Merge pull request #204 from TogetherCrew/201-extend-mongolib
201 extend mongolib
2 parents a974114 + dc60831 commit 1b14561

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class MongoConnectionManager {
5454

5555
public ensureConnected(): void {
5656
if (this.mongoConnection === null) {
57-
throw new Error('No active MongoDB connection. Please connect first.');
57+
throw new Error('No active MongoDB connection! Please connect first.');
5858
}
5959
}
6060

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import {
99
type IMemberActivity,
1010
type IRawInfo,
1111
type IRole,
12-
} from './interfaces';
12+
} from '../interfaces';
1313
import {
1414
channelSchema,
1515
guildMemberSchema,
1616
heatMapSchema,
1717
MemberActivitySchema,
1818
rawInfoSchema,
1919
roleSchema,
20-
} from './models/schemas';
20+
} from '../models/schemas';
2121

2222
export default class DatabaseManager {
2323
private static instance: DatabaseManager | undefined;

src/db/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './connection';
2+
export * from './databaseManager';

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ export * from './models';
22
export * from './models/schemas';
33
export * from './interfaces';
44
export * from './config/enums';
5-
export * from './databaseManager';
6-
export * from './connection';
75
export * from './repositories';
6+
export * from './db';

0 commit comments

Comments
 (0)