X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo.ts;h=b0d92b674ccc0bf310ae051c5fb1dd4e9d2d707c;hb=2ba92871319d7af63472c1380664a9f9eeb1c690;hp=fb037c21a19ec4819c0567510c87186d56c3a74b;hpb=d74d29ad9e35929491cf37223398d2535ab23de0;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video.ts b/server/models/video/video.ts index fb037c21a..b0d92b674 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1547,7 +1547,7 @@ export class VideoModel extends Model { attributes: query.attributes, order: [ // Keep original order Sequelize.literal( - ids.map(id => `"VideoModel".id = ${id}`).join(', ') + ids.map(id => `"VideoModel".id = ${id} DESC`).join(', ') ) ] }