fix(plugins): per-tenant plugin store flag and harden broken schema APIs
Store enablement is now a tenant settings row instead of a global runtime switch, and expiring/requests endpoints degrade to empty lists when store tables are missing. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
/** کلیدهای runtime / لاگ — مال سوپرادمین نیستند؛ در اپ خانگی توسط cron پر میشوند. */
|
||||
export const PLUGIN_STORE_SETTING_KEY = 'plugin_store_enabled';
|
||||
|
||||
export const RUNTIME_PROGRAM_SETTING_KEYS = new Set([
|
||||
'montzar_last_product_log',
|
||||
'montzar_order_response',
|
||||
@@ -13,6 +15,7 @@ export const RUNTIME_PROGRAM_SETTING_KEYS = new Set([
|
||||
'down_price',
|
||||
'price_extreme_date',
|
||||
'do_send_liman',
|
||||
PLUGIN_STORE_SETTING_KEY,
|
||||
]);
|
||||
|
||||
export function isRuntimeProgramSettingKey(keyRaw: string): boolean {
|
||||
|
||||
Reference in New Issue
Block a user