Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: listMemos sort by id for memos post/update at the same time (#1866)

Vespa31463d6b6f9f98a
diff --git a/store/memo.go b/store/memo.go
index 7c261f90f..acb43c976 100644
--- a/store/memo.go
+++ b/store/memo.go
@@ -301,6 +301,7 @@ func listMemos(ctx context.Context, tx *sql.Tx, find *FindMemoMessage) ([]*MemoM
} else {
orders = append(orders, "created_ts DESC")
}
+ orders = append(orders, "id DESC")
query := `
SELECT