UNPKG

@lucidcms/core

Version:

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

2 lines 451 B
import e from"../../../libs/repositories/locales.mjs";import t from"../../../libs/kv/cache-keys.mjs";const n=async(n,r)=>{let i=await new e(n.db.client,n.config.db).deleteSingle({where:[{key:`code`,operator:`=`,value:r.localeCode}],returning:[`code`],validation:{enabled:!0}});return i.error?i:(await n.kv.delete(n,{key:t.http.static.clientLocales,hash:!0}),{error:void 0,data:void 0})};export{n as default}; //# sourceMappingURL=delete-single.mjs.map