From f9b2ed849b4db153fdc0e920ee98d0d2dae487b8 Mon Sep 17 00:00:00 2001 From: an-lee Date: Wed, 10 Jan 2024 22:01:11 +0800 Subject: [PATCH] destroy recordings when audio/video destroyed --- enjoy/src/main/db/models/audio.ts | 6 ++++++ enjoy/src/main/db/models/recording.ts | 18 +++++++++++++----- enjoy/src/main/db/models/video.ts | 8 +++++++- .../recordings/recording-activities.tsx | 7 ++++++- 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/enjoy/src/main/db/models/audio.ts b/enjoy/src/main/db/models/audio.ts index 751d24ce..95ebc4b1 100644 --- a/enjoy/src/main/db/models/audio.ts +++ b/enjoy/src/main/db/models/audio.ts @@ -208,6 +208,12 @@ export class Audio extends Model