This commit is contained in:
maaa 2024-06-23 16:50:53 +02:00
parent dde44016e3
commit d92acb48da
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,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{}{})