move optional authorize

This commit is contained in:
SrGooglo 2024-04-18 17:34:30 +00:00
parent 0500118b68
commit e8a9c1bfce

View File

@ -39,6 +39,8 @@ class API extends Server {
})
global.b2Storage = this.contexts.b2Storage
await this.contexts.b2Storage.authorize()
} else {
console.warn("B2 storage not configured on environment, skipping...")
}
@ -46,7 +48,6 @@ class API extends Server {
await this.contexts.db.initialize()
await this.contexts.redis.initialize()
await this.contexts.storage.initialize()
await this.contexts.b2Storage.authorize()
this.contexts.limits = await LimitsClass.get()
}