mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-15 00:39:43 +02:00
Handle overlapping fullDomain properly
This commit is contained in:
@@ -518,10 +518,9 @@ export async function createSiteResource(
|
||||
.where(
|
||||
and(
|
||||
eq(siteResources.fullDomain, fullDomain),
|
||||
ne(
|
||||
siteResources.requiresExitNodeConnection,
|
||||
mode == "inference"
|
||||
)
|
||||
mode == "inference"
|
||||
? ne(siteResources.mode, "inference")
|
||||
: eq(siteResources.mode, "inference")
|
||||
)
|
||||
); // exclude looking at the ones on exit nodes if this is an inference resource
|
||||
|
||||
|
||||
@@ -484,10 +484,9 @@ export async function updateSiteResource(
|
||||
.where(
|
||||
and(
|
||||
eq(siteResources.fullDomain, fullDomain),
|
||||
ne(
|
||||
siteResources.requiresExitNodeConnection,
|
||||
mode == "inference"
|
||||
)
|
||||
mode == "inference"
|
||||
? ne(siteResources.mode, "inference")
|
||||
: eq(siteResources.mode, "inference")
|
||||
)
|
||||
); // exclude looking at the ones on exit nodes if this is an inference resource
|
||||
|
||||
|
||||
Reference in New Issue
Block a user