Migrate to @orbito/api-lib 2.0.0 for single-company container model.
Remove companyId from handlers, models, cron jobs, and cross-module calls to match the v2 one-module-one-company architecture. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+3
-3
@@ -311,9 +311,9 @@ function buildTemplate(form) {
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = async function(companyId, instanceId, body, params) {
|
||||
module.exports = async function(body, params) {
|
||||
try {
|
||||
const config = await ShopConfig.findOne({ companyId, isRemoved: { $ne: true } });
|
||||
const config = await ShopConfig.findOne({ isRemoved: { $ne: true } });
|
||||
const form = toFormResponse(config);
|
||||
|
||||
return {
|
||||
@@ -321,7 +321,7 @@ module.exports = async function(companyId, instanceId, body, params) {
|
||||
template: buildTemplate(form)
|
||||
};
|
||||
} catch (err) {
|
||||
Log.error(companyId, 'pages/config failed', { error: err?.message, stack: err?.stack });
|
||||
Log.error( 'pages/config failed', { error: err?.message, stack: err?.stack });
|
||||
return {
|
||||
type: 'ove',
|
||||
template: {
|
||||
|
||||
Reference in New Issue
Block a user