@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 570 B
JavaScript
import{copy as e}from"../../libs/i18n/copy.mjs";import t from"../../libs/repositories/options.mjs";import n from"../../libs/formatters/options.mjs";const r=async(r,i)=>{let a=await new t(r.db.client,r.config.db).selectMultiple({select:[`name`,`value_bool`,`value_int`,`value_text`],where:[{key:`name`,operator:`in`,value:i.names}],validation:{enabled:!0,defaultError:{message:e(`server:core.options.not.found.message`),status:404}}});return a.error?a:{error:void 0,data:n.formatMultiple({options:a.data})}};export{r as default};
//# sourceMappingURL=get-multiple.mjs.map