molecule-core/workspace-server/internal/orgtoken
Hongming Wang 8065d7ef03 fix(orgtoken): update Validate test mock to include org_id column
Validate now SELECTs id/prefix/org_id; the test mock row only had two
columns, so the actual query against sqlmock errored with 'invalid or
revoked org api token' at runtime (the row couldn't Scan). Add org_id
to the mocked row and assert it propagates to the 4th return value.

This is a test-only change — the production code path already had the
third column selected; CI was the canary.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 04:20:47 -07:00
..
tokens_test.go fix(orgtoken): update Validate test mock to include org_id column 2026-04-21 04:20:47 -07:00
tokens.go fix(F1097): set org_id in Gin context for org-token callers (#1218) (#1253) 2026-04-21 03:26:47 +00:00