claude-memory/graph/fixes/postgresql-migration-get-team-by-owner-returns-wrong-team-c9f0d6.md
Cal Corum b140d4d82a migrate: 313 memories from MemoryGraph
- 313 new markdown files created
- 30 relationships embedded
- 313 entries indexed
- State initialized with usage data
2026-02-13 11:11:48 -06:00

661 B

id type title tags importance confidence created updated
c9f0d612-3f33-47ed-953d-682df63c8ed4 fix PostgreSQL migration: get_team_by_owner returns wrong team
paper-dynasty
postgresql
migration
fix
discord-app
0.8 0.8 2026-01-31T21:50:27.501720+00:00 2026-01-31T21:50:27.501720+00:00

After PostgreSQL migration, get_team_by_owner() in discord-app returned the gauntlet team instead of the main team because PostgreSQL query ordering is undefined without ORDER BY. SQLite happened to return teams in a consistent order. Fix: Loop through teams and prefer the one without 'gauntlet' in the abbrev. Files: helpers.py and helpers/main.py