forked from Ailur/burgernotes-server
meowing
This commit is contained in:
parent
dde44016e3
commit
d92acb48da
2
main.go
2
main.go
|
@ -481,7 +481,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