mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-06 04:42:36 +02:00
Improve error handling
This commit is contained in:
parent
df5b3fdda8
commit
3af4ee6c84
11 changed files with 34 additions and 35 deletions
|
@ -93,6 +93,8 @@ func (db *appdbimpl) GetUserPhotos(uid string, requesting_uid string, start_inde
|
|||
|
||||
photos := make([]structures.UserPhoto, 0)
|
||||
|
||||
defer rows.Close()
|
||||
|
||||
for rows.Next() {
|
||||
// If there is a next row, we create an instance of Photo and add it to the slice
|
||||
var photo structures.UserPhoto
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue