fix: SessionContext uses SessionID, not ID
This commit is contained in:
1 parent
7e2a4306ce
commit
8c1ae672e1
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user