Update argument order

This commit is contained in:
toasted-nutbread 2020-03-09 21:00:57 -04:00
parent 9cd4a52b9e
commit 0cbf427ab5
2 changed files with 4 additions and 4 deletions

View File

@ -48,8 +48,8 @@ class AudioUriBuilder {
return url;
}
async getUri(mode, definition, options) {
const handler = this._getUrlHandlers.get(mode);
async getUri(definition, source, options) {
const handler = this._getUrlHandlers.get(source);
if (typeof handler === 'function') {
try {
return await handler(definition, options);

View File

@ -515,7 +515,7 @@ class Backend {
async _onApiAudioGetUri({definition, source, optionsContext}) {
const options = this.getOptions(optionsContext);
return await this.audioUriBuilder.getUri(source, definition, options);
return await this.audioUriBuilder.getUri(definition, source, options);
}
_onApiScreenshotGet({options}, sender) {
@ -771,7 +771,7 @@ class Backend {
}
const options = this.getOptions(optionsContext);
return await this.audioUriBuilder.getUri(source, definition, options);
return await this.audioUriBuilder.getUri(definition, source, options);
}
async _audioInject(definition, fields, sources, optionsContext) {