Fix photo count in getUserProfile

This commit is contained in:
Marco Realacci 2022-11-23 11:15:52 +01:00
parent 233217beb9
commit 6b4c9bb531
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -40,7 +40,7 @@ func (db *appdbimpl) GetUserProfile(uid string, requesting_uid string) (QueryRes
} }
var photos int64 var photos int64
err = db.c.QueryRow(`SELECT COUNT(*) FROM "photos" WHERE "photos"."user" = ?`, uid).Scan(&following) err = db.c.QueryRow(`SELECT COUNT(*) FROM "photos" WHERE "photos"."user" = ?`, uid).Scan(&photos)
if err != nil { if err != nil {
return ERR_INTERNAL, nil, err return ERR_INTERNAL, nil, err