UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 539 B
import e from"../../constants/constants.mjs";import t from"../logger/index.mjs";import n from"./adapters/passthrough.mjs";const r=async(r,i)=>{try{return r.queue?.adapter?await(typeof r.queue.adapter==`function`?await r.queue.adapter():r.queue.adapter):n()}catch(r){return t.error({error:r,event:`queue-adapter.initialization.failed`,scope:e.logScopes.queueAdapter,message:`Failed to initialize queue adapter`,data:{errorMessage:r instanceof Error?r.message:String(r)}}),n()}};export{r as default}; //# sourceMappingURL=get-adapter.mjs.map