mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 16:17:32 +00:00
feat(eventstore): order by creation_date
and sequence
(#5568)
* feat(eventstore): order by `creation_date` and `sequence` * fix(logstore): use correct event type --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
@@ -255,10 +255,10 @@ func (db *CRDB) db() *sql.DB {
|
||||
|
||||
func (db *CRDB) orderByEventSequence(desc bool) string {
|
||||
if desc {
|
||||
return " ORDER BY event_sequence DESC"
|
||||
return " ORDER BY creation_date DESC, event_sequence DESC"
|
||||
}
|
||||
|
||||
return " ORDER BY event_sequence"
|
||||
return " ORDER BY creation_date, event_sequence"
|
||||
}
|
||||
|
||||
func (db *CRDB) eventQuery() string {
|
||||
|
Reference in New Issue
Block a user