Fix resource import error (#1136)
* make audio/video speech association optional * update package version
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"private": true,
|
||||
"name": "enjoy",
|
||||
"productName": "Enjoy",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1-preview",
|
||||
"description": "Enjoy desktop app",
|
||||
"main": ".vite/build/main.js",
|
||||
"types": "./src/types.d.ts",
|
||||
|
||||
@@ -85,7 +85,10 @@ export class Audio extends Model<Audio> {
|
||||
})
|
||||
transcription: Transcription;
|
||||
|
||||
@BelongsTo(() => Speech, "md5")
|
||||
@BelongsTo(() => Speech, {
|
||||
foreignKey: "md5",
|
||||
constraints: false,
|
||||
})
|
||||
speech: Speech;
|
||||
|
||||
@Default(0)
|
||||
|
||||
@@ -85,7 +85,10 @@ export class Video extends Model<Video> {
|
||||
})
|
||||
transcription: Transcription;
|
||||
|
||||
@BelongsTo(() => Speech, "md5")
|
||||
@BelongsTo(() => Speech, {
|
||||
foreignKey: "md5",
|
||||
constraints: false,
|
||||
})
|
||||
speech: Speech;
|
||||
|
||||
@Default(0)
|
||||
|
||||
Reference in New Issue
Block a user