@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 335 B
JavaScript
import e from"../../libs/repositories/auth-states.mjs";const t=async t=>{let n=new e(t.db.client,t.config.db),r=new Date().toISOString(),i=await n.deleteMultiple({where:[{key:`expiry_date`,operator:`<`,value:r}]});return i.error?i:{error:void 0,data:void 0}};export{t as default};
//# sourceMappingURL=clear-expired-auth-states.mjs.map