diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-25 08:38:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-25 08:38:59 +0200 |
commit | 06be7ed0b27b371465c5d1b7f92b4adfb0b866ea (patch) | |
tree | 70578c1fd3331be6cba83e52a5013db08f4d925a /server | |
parent | a00a8f09f9108d1d00d03a9de82f44d395c3efc7 (diff) | |
download | PeerTube-06be7ed0b27b371465c5d1b7f92b4adfb0b866ea.tar.gz PeerTube-06be7ed0b27b371465c5d1b7f92b4adfb0b866ea.tar.zst PeerTube-06be7ed0b27b371465c5d1b7f92b4adfb0b866ea.zip |
Reload my videos after delete
Diffstat (limited to 'server')
-rw-r--r-- | server/models/video/video.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 967a899f5..012a758ee 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -5,7 +5,6 @@ import * as parseTorrent from 'parse-torrent' | |||
5 | import { join } from 'path' | 5 | import { join } from 'path' |
6 | import * as Sequelize from 'sequelize' | 6 | import * as Sequelize from 'sequelize' |
7 | import { | 7 | import { |
8 | AfterDestroy, | ||
9 | AllowNull, | 8 | AllowNull, |
10 | BeforeDestroy, | 9 | BeforeDestroy, |
11 | BelongsTo, | 10 | BelongsTo, |
@@ -32,7 +31,11 @@ import { Video, VideoDetails, VideoFile } from '../../../shared/models/videos' | |||
32 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' | 31 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' |
33 | import { activityPubCollection } from '../../helpers/activitypub' | 32 | import { activityPubCollection } from '../../helpers/activitypub' |
34 | import { | 33 | import { |
35 | createTorrentPromise, peertubeTruncate, renamePromise, statPromise, unlinkPromise, | 34 | createTorrentPromise, |
35 | peertubeTruncate, | ||
36 | renamePromise, | ||
37 | statPromise, | ||
38 | unlinkPromise, | ||
36 | writeFilePromise | 39 | writeFilePromise |
37 | } from '../../helpers/core-utils' | 40 | } from '../../helpers/core-utils' |
38 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' | 41 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' |