@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.8.507",
3
+ "version": "1.8.508",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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
- && Sql.text.endsWith(x.host ,p.w)
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