You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): make headline seeder resilient and align with schema
The database seeding was crashing with a "Missing variable for 'source_id'" error due to invalid fixture data. Additionally, the `INSERT` statement for headlines was missing the `created_at` and `updated_at` columns.
This change makes the headline seeder more robust by validating that required fields (`source_id`, `category_id`) are present before attempting insertion, skipping invalid fixtures with a warning. It also updates the `INSERT` statement to be fully aligned with the table schema, resolving all remaining seeding issues.
0 commit comments