@reachu/database 1.0.105 → 1.0.108
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/entity/Variant.js
CHANGED
|
@@ -74,7 +74,7 @@ __decorate([
|
|
|
74
74
|
__metadata("design:type", String)
|
|
75
75
|
], Variant.prototype, "originData", void 0);
|
|
76
76
|
__decorate([
|
|
77
|
-
typeorm_1.OneToMany(() => Image_1.default, (image) => image.
|
|
77
|
+
typeorm_1.OneToMany(() => Image_1.default, (image) => image.variant, { eager: true, cascade: true }),
|
|
78
78
|
typeorm_1.JoinColumn(),
|
|
79
79
|
__metadata("design:type", Array)
|
|
80
80
|
], Variant.prototype, "images", void 0);
|
|
@@ -2452,7 +2452,7 @@
|
|
|
2452
2452
|
"affectsGlobalScope": false
|
|
2453
2453
|
},
|
|
2454
2454
|
"../src/entity/variant.ts": {
|
|
2455
|
-
"version": "
|
|
2455
|
+
"version": "8a212a4f61da9bf6002d15d1550ba869e8ba116d575cbba04e7503b82d087562",
|
|
2456
2456
|
"signature": "50b25567de85a66172ddcd1c0145e35c2d2b4cd41a11ec1c4c7112430d3dce02",
|
|
2457
2457
|
"affectsGlobalScope": false
|
|
2458
2458
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.108",
|
|
4
4
|
"description": "reachu-database",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "reachu",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@reachu/logger": "1.0.
|
|
25
|
-
"@reachu/utils": "1.0.
|
|
24
|
+
"@reachu/logger": "1.0.108",
|
|
25
|
+
"@reachu/utils": "1.0.108",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
package/src/entity/Variant.ts
CHANGED
|
@@ -55,7 +55,7 @@ export default class Variant {
|
|
|
55
55
|
@Column({ type: 'varchar', length: '21844', nullable: true, default: null })
|
|
56
56
|
originData: string;
|
|
57
57
|
|
|
58
|
-
@OneToMany(() => Image, (image) => image.
|
|
58
|
+
@OneToMany(() => Image, (image) => image.variant, { eager: true, cascade: true })
|
|
59
59
|
@JoinColumn()
|
|
60
60
|
images: Image[];
|
|
61
61
|
}
|