mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 06:06:15 +01:00
Fix photo count in getUserProfile
This commit is contained in:
parent
233217beb9
commit
6b4c9bb531
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -40,7 +40,7 @@ func (db *appdbimpl) GetUserProfile(uid string, requesting_uid string) (QueryRes
|
|||
}
|
||||
|
||||
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 {
|
||||
return ERR_INTERNAL, nil, err
|
||||
|
|
Loading…
Reference in a new issue