aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index e9afb2c18..422bf6deb 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -2027,9 +2027,11 @@ export class VideoModel extends Model {
2027 } 2027 }
2028 2028
2029 setAsRefreshed () { 2029 setAsRefreshed () {
2030 this.changed('updatedAt', true) 2030 const options = {
2031 where: { id: this.id }
2032 }
2031 2033
2032 return this.save() 2034 return VideoModel.update({ updatedAt: new Date() }, options)
2033 } 2035 }
2034 2036
2035 requiresAuth () { 2037 requiresAuth () {