diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-28 14:45:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-28 14:45:17 +0100 |
commit | 0374b6b5cd685316f924874b2a3068bb345eb0dd (patch) | |
tree | 43731106158cd37cc616d0801fcc2681befc9708 /server/lib | |
parent | 2f1756a03ccf3546f9bbcd98bc149e350d3d950a (diff) | |
download | PeerTube-0374b6b5cd685316f924874b2a3068bb345eb0dd.tar.gz PeerTube-0374b6b5cd685316f924874b2a3068bb345eb0dd.tar.zst PeerTube-0374b6b5cd685316f924874b2a3068bb345eb0dd.zip |
Cleanup server fixme
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 | ||