mirror of
https://github.com/pockethost/pockethost.git
synced 2026-03-01 22:43:32 +00:00
Merge branch 'master' of github.com:benallfree/pockethost
This commit is contained in:
@@ -410,6 +410,11 @@ export const instanceService = mkSingleton(
|
||||
})
|
||||
if (instance) {
|
||||
dbg(`${host} is a cname`)
|
||||
if (!instance.cname_active) {
|
||||
throw new Error(
|
||||
`CNAME not active for this instance. See dashboard.`,
|
||||
)
|
||||
}
|
||||
return instance
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export const createInstanceMixin = (context: MixinContext) => {
|
||||
): Promise<InstanceFields & WithUser> =>
|
||||
client
|
||||
.collection(INSTANCE_COLLECTION)
|
||||
.getFirstListItem(`cname = '${host}' and cname_active = 1`, {
|
||||
.getFirstListItem(`cname = '${host}'`, {
|
||||
expand: 'uid',
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user