Skip to content

Commit

Permalink
fix(models: serverconfig): fix this.delete causing error bc it's #del…
Browse files Browse the repository at this point in the history
…eteGuild
  • Loading branch information
dsevillamartin committed Oct 12, 2017
1 parent b8041fd commit d84e0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Models/ServerConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ServerConfig {
* @param {Guild|String} guildID Guild config to delete
* @return {Promise<ServerConfig>}
*/
deleteGuild(guildID) {
delete(guildID) {
if (guildID.id) guildID = guildID.id;
return serverConfig.findOneAndRemove({
guildID,
Expand Down

0 comments on commit d84e0fe

Please sign in to comment.