@social-mail/social-mail-web-server 1.4.892 → 1.4.893

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.4.892",
3
+ "version": "1.4.893",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -44,7 +44,10 @@ export type contentDispositionTypes = typeof contentDispositions[number];
44
44
  @Table("AppFiles")
45
45
  @Index({
46
46
  name: "IX_AppFiles_Path",
47
- columns: [ { name: (x) => x.path, descending: false }],
47
+ columns: [
48
+ { name: (x) => x.path, descending: false },
49
+ { name: (x) => x.isDeleted, descending: false }
50
+ ],
48
51
  filter: (x) => x.path !== null
49
52
  })
50
53
  @Index({
@@ -10,14 +10,20 @@ export default class DomainUser {
10
10
  @Column({dataType: "BigInt", key: true, order: 1})
11
11
  @RelateTo(HostedDomain, {
12
12
  property: (du) => du.hostedDomain,
13
- inverseProperty: (domain) => domain.domainUsers
13
+ inverseProperty: (domain) => domain.domainUsers,
14
+ foreignKeyConstraint: {
15
+ cascade: "delete"
16
+ }
14
17
  })
15
18
  public domainID: number;
16
19
 
17
20
  @Column({ dataType: "BigInt", key: true, order: 2})
18
21
  @RelateTo(User, {
19
22
  property: (du) => du.user,
20
- inverseProperty: (user) => user.domainUsers
23
+ inverseProperty: (user) => user.domainUsers,
24
+ foreignKeyConstraint: {
25
+ cascade: "delete"
26
+ }
21
27
  })
22
28
  public userID: number;
23
29
 
@@ -3,7 +3,7 @@ import semver from "semver";
3
3
 
4
4
  export default async function seedUI(config: DBConfig) {
5
5
 
6
- const version = "1.2.365";
6
+ const version = "1.2.369";
7
7
 
8
8
  const existing = await config.getValue(UIPackageConfig, false);
9
9
  if (existing) {