Merge remote-tracking branch 'origin/main'

This commit is contained in:
Tracker-Friendly 2024-06-24 16:55:56 +01:00
commit d4fe38f245
1 changed files with 1 additions and 1 deletions

View File

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