Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
d4fe38f245
2
main.go
2
main.go
|
@ -714,7 +714,7 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
rows, err := conn.Query("SELECT id, title FROM notes WHERE creator = ? ORDER BY edited DESC", userid)
|
rows, err := conn.Query("SELECT id, title FROM notes WHERE creator = ? ORDER BY id DESC", userid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errors.Is(err, sql.ErrNoRows) {
|
if errors.Is(err, sql.ErrNoRows) {
|
||||||
c.JSON(200, []map[string]interface{}{})
|
c.JSON(200, []map[string]interface{}{})
|
||||||
|
|
Loading…
Reference in New Issue