From d3e9f442b2426153d971990f6cc0a134451eae04 Mon Sep 17 00:00:00 2001 From: bsian03 Date: Sun, 10 May 2020 22:07:14 +0100 Subject: [PATCH] feat/breaking(MongoProvider): Rename fetchGuildSchema to fetchGuildDocument(#80) * Rename method * For some reason this didn't get included --- src/Database/MongoProvider.js | 2 +- types/Database/MongoProvider.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database/MongoProvider.js b/src/Database/MongoProvider.js index d2f283cc..e078f78b 100644 --- a/src/Database/MongoProvider.js +++ b/src/Database/MongoProvider.js @@ -137,7 +137,7 @@ class MongoProvider extends ADBProvider { * @returns {Promise} GuildDocument or null * @memberof MongoProvider */ - fetchGuildSchema(gID) { + fetchGuildDocument(gID) { return this.GuildSchema.findOne( { guildID: gID, } ).exec(); diff --git a/types/Database/MongoProvider.ts b/types/Database/MongoProvider.ts index 1048849b..b77cdd17 100644 --- a/types/Database/MongoProvider.ts +++ b/types/Database/MongoProvider.ts @@ -63,7 +63,7 @@ export declare class MongoProvider extends ADBProvider { * @returns GuildDocument or null * @memberof MongoProvider */ - fetchGuildSchema(gID: string): Promise; + fetchGuildDocument(gID: string): Promise; /** * Update AxonConfig in the DB.