repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
c2f5b9e
parent
44be1fd
author
Eric Bower
date
2024-02-26 19:12:57 +0000 UTC
fix(feeds): name is nullable
1 files changed,  +3, -1
M db/postgres/storage.go
+3, -1
 1@@ -912,15 +912,17 @@ func (me *PsqlDB) FindUsers() ([]*db.User, error) {
 2 		return users, err
 3 	}
 4 	for rs.Next() {
 5+		var name sql.NullString
 6 		user := &db.User{}
 7 		err := rs.Scan(
 8 			&user.ID,
 9-			&user.Name,
10+			&name,
11 			&user.CreatedAt,
12 		)
13 		if err != nil {
14 			return users, err
15 		}
16+		user.Name = name.String
17 
18 		users = append(users, user)
19 	}