fix: create system account for service user (prod account_id NOT NULL) #91

Merged
chihlasm merged 1 commits from fix/service-account-system-account into main 2026-02-26 04:52:48 +00:00
chihlasm commented 2026-02-26 04:52:44 +00:00 (Migrated from github.com)

Summary

  • Migration 1490781700bc and ensure_service_account() now create a ResolutionFlow System account (RF-SYS-1) before inserting the service user
  • Fixes null value in column "account_id" of relation "users" error on Railway production where users.account_id is NOT NULL
  • Hotfix for the service account feature landed in #89

Test Plan

  • Railway deploy completes without migration error
  • Logs show [service_account] Service account ready (id=...)
  • Logs show [backfill] Set author_id to service account on N default trees

🤖 Generated with Claude Code

## Summary - Migration `1490781700bc` and `ensure_service_account()` now create a `ResolutionFlow System` account (`RF-SYS-1`) before inserting the service user - Fixes `null value in column "account_id" of relation "users"` error on Railway production where `users.account_id` is `NOT NULL` - Hotfix for the service account feature landed in #89 ## Test Plan - [ ] Railway deploy completes without migration error - [ ] Logs show `[service_account] Service account ready (id=...)` - [ ] Logs show `[backfill] Set author_id to service account on N default trees` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.