UNPKG

@lucidcms/core

Version:

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

2 lines 526 B
import e from"../../../../repositories/users.mjs";const t=async(t,n)=>{let r=new e(t.db.client,t.config.db),i=Array.from(new Set(n.relations.flatMap(e=>Array.from(e.values).filter(e=>typeof e==`number`))));if(i.length===0)return{data:{rows:[]},error:void 0};let a=await r.selectMultipleByIds({ids:i,where:[{key:`is_deleted`,operator:`=`,value:t.config.db.getDefault(`boolean`,`false`)}],validation:{enabled:!0}});return a.error?a:{error:void 0,data:{rows:a.data}}};export{t as default}; //# sourceMappingURL=fetch-refs.mjs.map