@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 403 B
JavaScript
import e from"../../libs/repositories/client-integrations.mjs";const t=async(t,n)=>{let r=await new e(t.db.client,t.config.db).updateMultiple({data:{last_used_at:new Date().toISOString(),last_used_ip:n.ipAddress,last_used_user_agent:n.userAgent},where:[{key:`id`,operator:`=`,value:n.id}]});return r.error?r:{error:void 0,data:void 0}};export{t as default};
//# sourceMappingURL=update-last-used.mjs.map