@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 402 B
JavaScript
import e from"../../libs/repositories/user-logins.mjs";const t=async(t,n)=>{let r=await new e(t.db.client,t.config.db).createSingle({data:{user_id:n.userId,token_id:n.tokenId,auth_method:n.authMethod,ip_address:n.ipAddress,user_agent:n.userAgent},returning:[`id`],validation:{enabled:!0}});return r.error?r:{error:void 0,data:r.data.id}};export{t as default};
//# sourceMappingURL=create-single.mjs.map