src: remove cache and simplify db logic

Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
This commit is contained in:
Aditya Wasan 2021-01-24 23:19:07 +05:30 committed by Harsh Shandilya
parent 3bcdcbdac7
commit f9fcb089a1
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
7 changed files with 60 additions and 23 deletions

View file

@ -56,6 +56,12 @@ deleteAllPosts:
DELETE
FROM LobstersPost;
isPostSaved:
SELECT *
FROM LobstersPost
WHERE short_id = ?
AND is_saved = 1;
selectCount:
SELECT COUNT(*)
FROM LobstersPost;