Skip to content

Commit dbedbf6

Browse files
jolheiserneurosnap
authored andcommitted
fix: use eventlog time for pr details
Signed-off-by: jolheiser <[email protected]>
1 parent 14c87fe commit dbedbf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ func prDetailHandler(w http.ResponseWriter, r *http.Request) {
476476
w.WriteHeader(http.StatusUnprocessableEntity)
477477
return
478478
}
479-
slices.SortFunc[[]*EventLog](logs, func(a *EventLog, b *EventLog) int {
479+
slices.SortFunc(logs, func(a *EventLog, b *EventLog) int {
480480
return a.CreatedAt.Compare(b.CreatedAt)
481481
})
482482

@@ -498,7 +498,7 @@ func prDetailHandler(w http.ResponseWriter, r *http.Request) {
498498
IsAdmin: web.Backend.IsAdmin(pk),
499499
Pubkey: user.Pubkey,
500500
},
501-
Date: pr.CreatedAt.Format(web.Backend.Cfg.TimeFormat),
501+
Date: eventlog.CreatedAt.Format(web.Backend.Cfg.TimeFormat),
502502
})
503503
}
504504

0 commit comments

Comments
 (0)