Fixed a lot of bad queries

This commit is contained in:
Marco Realacci 2022-11-22 23:41:52 +01:00
parent a3cf4f17f8
commit 233217beb9
15 changed files with 48 additions and 30 deletions

View file

@ -21,7 +21,7 @@ type Comment struct {
Date string `json:"date"`
}
type Photo struct { //todo: move to structures
type Photo struct {
UID string `json:"user_id"`
ID int64 `json:"photo_id"`
Likes int64 `json:"likes"`
@ -44,5 +44,5 @@ type UserProfile struct {
Following int64 `json:"following"`
Followers int64 `json:"followers"`
Followed bool `json:"followed"`
Photos int64 `json:"photos"` //todo: check json names
Photos int64 `json:"photos"`
}