Fix tenant permission inserts missing workspace_id #118

Merged
ahmido merged 1 commits from fix/tenant-permissions-workspace-id into dev 2026-02-16 00:58:35 +00:00
Owner

Fixes a production/queue-worker failure where tenant_permissions.workspace_id could be omitted from INSERTs when persisting permission check results.

Changes:

  • Ensure workspace_id is included in the updateOrCreate() attributes array (lookup + create merge).
  • Add a regression test covering a tenant instance without workspace_id loaded.

Notes:

  • Queue workers should be restarted (queue:restart) after deploy so they pick up the new code.
Fixes a production/queue-worker failure where `tenant_permissions.workspace_id` could be omitted from INSERTs when persisting permission check results. Changes: - Ensure `workspace_id` is included in the `updateOrCreate()` attributes array (lookup + create merge). - Add a regression test covering a tenant instance without `workspace_id` loaded. Notes: - Queue workers should be restarted (`queue:restart`) after deploy so they pick up the new code.
ahmido added 1 commit 2026-02-16 00:58:17 +00:00
ahmido merged commit 521fb6baaf into dev 2026-02-16 00:58:35 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ahmido/TenantAtlas#118
No description provided.