fix: SessionContext uses SessionID, not ID

This commit is contained in:
sam committed 2026-07-29 07:32:59 +10:00
1 parent 7e2a4306ce
commit 8c1ae672e1
1 file changed
+1 -1
+1 -1
View File
@@ -697,7 +697,7 @@ type fakeSessionLister struct {
func (f *fakeSessionLister) Save(ctx context.Context, s SessionContext) error { return f.err }
func (f *fakeSessionLister) Get(ctx context.Context, id string) (*SessionContext, error) {
for i := range f.sessions {
if f.sessions[i].ID == id {
if f.sessions[i].SessionID == id {
return &f.sessions[i], nil
}
}