fix(tenancy): use is_production() for invitation URL instead of debug flag
All checks were successful
All checks were successful
Using debug flag for environment detection is unreliable — if left True in prod, links would point to localhost. Now uses the proper is_production() from environment module. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -47,9 +47,22 @@ function scanJobs() {
|
||||
}
|
||||
},
|
||||
|
||||
// Maps button job types to actual API route segments
|
||||
batchRoutes: {
|
||||
'http_check': 'http-check',
|
||||
'tech_scan': 'tech-scan',
|
||||
'performance_scan': 'performance',
|
||||
'score_compute': 'score-compute',
|
||||
},
|
||||
|
||||
async startBatchJob(jobType) {
|
||||
var route = this.batchRoutes[jobType];
|
||||
if (!route) {
|
||||
Utils.showToast('Unknown job type: ' + jobType, 'error');
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await apiClient.post('/admin/prospecting/enrichment/' + jobType.replace('_', '-') + '/batch');
|
||||
await apiClient.post('/admin/prospecting/enrichment/' + route + '/batch');
|
||||
Utils.showToast(jobType.replace(/_/g, ' ') + ' batch started', 'success');
|
||||
setTimeout(() => this.loadJobs(), 2000);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user