Skip to content

Commit a67c1ae

Browse files
Changed Type to SessionType
1 parent 8ea18a7 commit a67c1ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sens/fission/src/session/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Session struct {
2424
Id string `json:"SessionId"`
2525
UserId string `json:"UserId"`
2626
Name string `json:"SessionName"`
27-
Type string `json:"Type"`
27+
Type string `json:"SessionType"`
2828
StartedAt int64 `json:"StartedAt"`
2929
EndedAt int64 `json:"EndedAt"`
3030
}
@@ -202,7 +202,7 @@ func getUserSessions(r *http.Request, sessionType string, limit int64, userId *s
202202

203203
for _, currentUserId := range userIdList {
204204
var url string
205-
url = fmt.Sprintf("%v/api/sessions/find?and=UserId^%v&limit=%v&and=Type^%v&column=EndedAt", config.GetDatastoreUrl(), currentUserId, limit, sessionType)
205+
url = fmt.Sprintf("%v/api/sessions/find?and=UserId^%v&limit=%v&and=SessionType^%v&column=EndedAt", config.GetDatastoreUrl(), currentUserId, limit, sessionType)
206206
if from != 0 && to != 0 {
207207
url = fmt.Sprintf("%v&span=EndedAt^%v^%v", url, from, to)
208208
}

0 commit comments

Comments
 (0)