File tree Expand file tree Collapse file tree
kotlin/project/pipepipe/app/database
sqldelight/project/pipepipe/database Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ object DatabaseOperations {
144144 uploader = streamInfo.uploaderName ? : " Unknown" ,
145145 uploader_url = streamInfo.uploaderUrl,
146146 thumbnail_url = streamInfo.thumbnailUrl,
147- upload_date = streamInfo.uploadDate ? : 0 ,
147+ upload_date = streamInfo.uploadDate,
148148 is_paid = if (streamInfo.isPaid) 1L else 0L ,
149149 is_short = if (streamInfo.isShort) 1L else 0L ,
150150 url = streamInfo.url
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ selectFeedStreams:
396396SELECT s.* FROM streams s
397397INNER JOIN feed f ON s.uid = f.stream_id
398398INNER JOIN subscriptions sub ON f.subscription_id = sub.uid
399- ORDER BY s.upload_date DESC;
399+ ORDER BY s.upload_date IS NULL DESC, s.upload_date DESC;
400400
401401insertFeedStream:
402402INSERT OR IGNORE INTO feed (stream_id, subscription_id)
@@ -585,7 +585,7 @@ FROM streams s
585585INNER JOIN feed f ON s.uid = f.stream_id
586586INNER JOIN feed_group_subscription_join fgsj ON f.subscription_id = fgsj.subscription_id
587587WHERE fgsj.group_id = ?
588- ORDER BY s.upload_date DESC;
588+ ORDER BY s.upload_date IS NULL DESC, s.upload_date DESC;
589589
590590
591591-- Feed last updated queries
You can’t perform that action at this time.
0 commit comments