Add company-scoped brand and company settings API.
brand now carries a NOT NULL company_id (unique per (company_id, name)) with brand.list/upsert/delete backed by resolveCompanyAccess. Adds companysetting key-value store (list/get/set/delete, frontend flag).
This commit is contained in:
9
src/store/companysetting/shapeSetting.js
Normal file
9
src/store/companysetting/shapeSetting.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function shapeSetting(row) {
|
||||
return {
|
||||
key: row.key,
|
||||
value: row.value,
|
||||
frontend: Boolean(row.frontend),
|
||||
};
|
||||
}
|
||||
|
||||
export default shapeSetting;
|
||||
Reference in New Issue
Block a user