UNPKG

@lucidcms/core

Version:

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

2 lines 337 B
import e from"../../libs/repositories/preview-sessions.mjs";const t=async t=>{let n=await new e(t.db.client,t.config.db).deleteMultiple({where:[{key:`expires_at`,operator:`<=`,value:new Date().toISOString()}]});return n.error?n:{error:void 0,data:void 0}};export{t as default}; //# sourceMappingURL=clear-expired-preview-sessions.mjs.map