forked from Ailur/burgernotes-server
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
|
||||
}
|
||||
|
||||
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 errors.Is(err, sql.ErrNoRows) {
|
||||
c.JSON(200, []map[string]interface{}{})
|
||||
|
|
Loading…
Reference in New Issue