mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
Custom provider fixes (#4498)
Fixes: https://github.com/transloadit/uppy/issues/4460
This commit is contained in:
parent
c377379019
commit
8b6e87a168
2 changed files with 4 additions and 2 deletions
|
|
@ -34,7 +34,9 @@ function adaptData (res) {
|
|||
class MyCustomProvider {
|
||||
static version = 2
|
||||
|
||||
authProvider = 'myunsplash'
|
||||
static get authProvider () {
|
||||
return 'myunsplash'
|
||||
}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
async list ({ token, directory }) {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ exports.getCredentialsOverrideMiddleware = (providers, companionOptions) => {
|
|||
return
|
||||
}
|
||||
|
||||
if (!companionOptions.providerOptions[providerName].credentialsURL) {
|
||||
if (!companionOptions.providerOptions[providerName]?.credentialsURL) {
|
||||
next()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue