Add more check for stopwatch read or list (#36340)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2026-01-13 13:13:39 +00:00
1 parent ed5720af2a
commit 95ea2df00a
9 files changed
+160 -7

No files matched your search

+1 -1
View File
@@ -224,7 +224,7 @@ func GetStopwatches(ctx *context.APIContext) {
return
}
apiSWs, err := convert.ToStopWatches(ctx, sws)
apiSWs, err := convert.ToStopWatches(ctx, ctx.Doer, sws)
if err != nil {
ctx.APIErrorInternal(err)
return