Skip to content

fix(domains): fall back to findLocalServer when project serverId is null (#721) - #725

Open
chbndrhnns wants to merge 1 commit into
oblien:mainfrom
chbndrhnns:fix/resolve-project-server-local-fallback
Open

fix(domains): fall back to findLocalServer when project serverId is null (#721)#725
chbndrhnns wants to merge 1 commit into
oblien:mainfrom
chbndrhnns:fix/resolve-project-server-local-fallback

Conversation

@chbndrhnns

Copy link
Copy Markdown
Contributor

Closes #721

Changes

  • In apps/api/src/modules/domains/ensure-edge.controller.ts (resolveProjectServer), added a fallback to findLocalServer() when serverId is unpopulated on local-target / single-host deployments.
  • Updated apps/api/src/modules/domains/ensure-edge.controller.test.ts with a unit test asserting that resolveProjectServer falls back to the local server row and resolves isLocal: true when project.serverId and deployment metadata serverId are null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] resolveProjectServer fails on local target projects when project.serverId is null

1 participant