Remove view_bookability + view_competitor_rates from forecasting caps

These features have moved to the Rate Monitor app.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-05 12:14:30 +00:00
parent a4ea1c141e
commit 2f0c9a1b34

View file

@ -238,11 +238,9 @@ export async function initDb() {
FROM apps a FROM apps a
CROSS JOIN (VALUES CROSS JOIN (VALUES
('view', 'View Forecasts', 'View dashboard, forecasts, and history', 1), ('view', 'View Forecasts', 'View dashboard, forecasts, and history', 1),
('view_bookability', 'View Bookability', 'View the rate / bookability matrix', 2), ('view_accuracy', 'View Accuracy', 'View model accuracy metrics and backtesting', 2),
('view_competitor_rates', 'View Competitors', 'View competitor rate scraping and matrix', 3), ('manage_sync', 'Manage Data Sync', 'Trigger Newbook / Resos data syncs manually', 3),
('view_accuracy', 'View Accuracy', 'View model accuracy metrics and backtesting', 4), ('settings', 'Manage Settings', 'Configure Newbook credentials and sync schedules', 4)
('manage_sync', 'Manage Data Sync', 'Trigger Newbook / Resos data syncs manually', 5),
('settings', 'Manage Settings', 'Configure Newbook credentials and sync schedules', 6)
) AS c(slug, name, description, sort_order) ) AS c(slug, name, description, sort_order)
WHERE a.slug = 'forecasting' WHERE a.slug = 'forecasting'
ON CONFLICT (app_id, slug) DO UPDATE SET ON CONFLICT (app_id, slug) DO UPDATE SET