-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(InMemoryProvider): saveGuild and saveAxon inconsistency. #53
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, this is indeed an inconsistency that could be misleading and cause potential breaking issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally missed this as well.
This PR really fixed some major issue that would have been hard to debug
} | ||
|
||
async updateGuild(key, gID, value) { | ||
const guild = await this.fetchGuild(gID); | ||
guild[key] = value; | ||
this.saveGuildSchema(gID, guild); | ||
return guild; | ||
return this.saveGuildSchema(gID, guild); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.saveGuild
instead of saveGuildSchema
?
@@ -82,7 +85,7 @@ class InMemoryProvider extends ADBProvider { | |||
axonConf = await this.initAxon(); | |||
} | |||
axonConf[key] = value; | |||
return axonConf; | |||
return this.saveAxonSchema(axonConf); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.saveAxon
instead of saveAxonSchema
?
…com//pull/53/files#r379866275 and
PULL REQUEST
Overview
Fixed two functions of InnMemoryProvider, init (was not implemented) and saveGuildSchema.
Status
Semantic versioning classification