@things-factory/attachment-base 7.1.19 → 7.1.21

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": "@things-factory/attachment-base",
3
- "version": "7.1.19",
3
+ "version": "7.1.21",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -29,11 +29,11 @@
29
29
  "@aws-sdk/s3-presigned-post": "^3.46.0",
30
30
  "@azure/storage-blob": "^12.18.0",
31
31
  "@koa/multer": "^3.0.0",
32
- "@things-factory/auth-base": "^7.1.19",
32
+ "@things-factory/auth-base": "^7.1.21",
33
33
  "@things-factory/env": "^7.1.16",
34
34
  "@things-factory/shell": "^7.1.17",
35
35
  "mime": "^3.0.0",
36
36
  "multer": "^1.4.5-lts.1"
37
37
  },
38
- "gitHead": "f0e77af98e54782375ac4410c897f75a3eb9b3c6"
38
+ "gitHead": "8391c69c808451e0fdc16a5aaa952bb128466f16"
39
39
  }
@@ -23,20 +23,7 @@ export class AttachmentQuery {
23
23
  domain,
24
24
  alias: 'attachment',
25
25
  searchables: ['name', 'description', 'tags']
26
- }).addSelect([
27
- 'attachment.domain',
28
- 'attachment.id',
29
- 'attachment.name',
30
- 'attachment.path',
31
- 'attachment.size',
32
- 'attachment.mimetype',
33
- 'attachment.encoding',
34
- 'attachment.category',
35
- 'attachment.updatedAt',
36
- 'attachment.updater',
37
- 'attachment.createdAt',
38
- 'attachment.creator'
39
- ])
26
+ })
40
27
 
41
28
  const [items, total] = await queryBuilder.getManyAndCount()
42
29
 
@@ -75,7 +75,10 @@ export class Attachment {
75
75
  @Field()
76
76
  path?: string
77
77
 
78
- @Column()
78
+ @Column({
79
+ nullable: true,
80
+ type: DATABASE_TYPE == 'mssql' ? 'bigint' : undefined
81
+ })
79
82
  @Field()
80
83
  size?: string
81
84