diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/activitypub/videos.ts | 1 | ||||
-rw-r--r-- | server/lib/job-queue/job-queue.ts | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index ade93150f..7a9d5168b 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts | |||
@@ -639,7 +639,6 @@ async function videoActivityObjectToDBAttributes (videoChannel: MChannelId, vide | |||
639 | createdAt: new Date(videoObject.published), | 639 | createdAt: new Date(videoObject.published), |
640 | publishedAt: new Date(videoObject.published), | 640 | publishedAt: new Date(videoObject.published), |
641 | originallyPublishedAt: videoObject.originallyPublishedAt ? new Date(videoObject.originallyPublishedAt) : null, | 641 | originallyPublishedAt: videoObject.originallyPublishedAt ? new Date(videoObject.originallyPublishedAt) : null, |
642 | // FIXME: updatedAt does not seems to be considered by Sequelize | ||
643 | updatedAt: new Date(videoObject.updated), | 642 | updatedAt: new Date(videoObject.updated), |
644 | views: videoObject.views, | 643 | views: videoObject.views, |
645 | likes: 0, | 644 | likes: 0, |
diff --git a/server/lib/job-queue/job-queue.ts b/server/lib/job-queue/job-queue.ts index 8bbf58f2b..a1c623b25 100644 --- a/server/lib/job-queue/job-queue.ts +++ b/server/lib/job-queue/job-queue.ts | |||
@@ -144,8 +144,7 @@ class JobQueue { | |||
144 | continue | 144 | continue |
145 | } | 145 | } |
146 | 146 | ||
147 | // FIXME: Bull queue typings does not have getJobs method | 147 | const jobs = await queue.getJobs([ state ], 0, start + count, asc) |
148 | const jobs = await (queue as any).getJobs(state, 0, start + count, asc) | ||
149 | results = results.concat(jobs) | 148 | results = results.concat(jobs) |
150 | } | 149 | } |
151 | 150 | ||