mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix type mismatch error.
This commit is contained in:
parent
8aefd7023d
commit
37b2fca2fd
1 changed files with 3 additions and 2 deletions
|
@ -164,14 +164,15 @@ public class VideoHelpers {
|
|||
"(:uploader_id,:duration,:is_short,:thumbnail,:title,:uploaded,:views,:id) ON CONFLICT (id) DO UPDATE SET " +
|
||||
"duration = excluded.duration, title = excluded.title, views = excluded.views"
|
||||
)
|
||||
.setParameter("uploader_id", video.getChannel())
|
||||
.setParameter("uploader_id", video.getChannel().getUploaderId())
|
||||
.setParameter("duration", video.getDuration())
|
||||
.setParameter("is_short", video.isShort())
|
||||
.setParameter("thumbnail", video.getThumbnail())
|
||||
.setParameter("title", video.getTitle())
|
||||
.setParameter("uploaded", video.getUploaded())
|
||||
.setParameter("views", video.getViews())
|
||||
.setParameter("id", video.getId()).executeUpdate();
|
||||
.setParameter("id", video.getId())
|
||||
.executeUpdate();
|
||||
tr.commit();
|
||||
} catch (Exception e) {
|
||||
tr.rollback();
|
||||
|
|
Loading…
Reference in a new issue