Change ID types to int64

This commit is contained in:
Jason Francis 2019-12-09 18:39:12 -05:00
commit 5576cbac8d
7 changed files with 19 additions and 19 deletions

View file

@ -63,7 +63,7 @@ proc cache*(video: var Video) =
if video.videoId.len > 0:
video.insert()
proc getCachedVideo*(id: int): Option[Video] =
proc getCachedVideo*(id: int64): Option[Video] =
withDb:
try:
return some Video.getOne("videoId = ?", $id)