@social-mail/social-mail-web-server 1.8.507 → 1.8.508
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/services/files/WebSiteContentService.d.ts.map +1 -1
- package/dist/server/services/files/WebSiteContentService.js +2 -2
- package/dist/server/services/files/WebSiteContentService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/services/files/WebSiteContentService.ts +2 -3
package/package.json
CHANGED
|
@@ -130,9 +130,8 @@ export default class WebSiteContentService
|
|
|
130
130
|
@cacheFor()
|
|
131
131
|
async getWildcardHostFor(folderID) {
|
|
132
132
|
const w = globalEnv.wildcardDomain;
|
|
133
|
-
return this.replicaReader.query((db) => db.websiteFolderHosts.where({ folderID, w }, (p) => (x) => x.folderID === p.folderID
|
|
134
|
-
|
|
135
|
-
)
|
|
133
|
+
return this.replicaReader.query((db) => db.websiteFolderHosts.where({ folderID, w }, (p) => (x) => x.folderID === p.folderID)
|
|
134
|
+
.orderByDescending({ w }, (p) => (x) => Sql.text.endsWith(x.host ,p.w))
|
|
136
135
|
.first());
|
|
137
136
|
}
|
|
138
137
|
|