Skip to content

Commit

Permalink
apache#79 modify
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoYL123 committed Mar 2, 2020
1 parent 2b0c1a1 commit a2e1a9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/resource/v1/history_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ func (r *HistoryResource) GetRevisions(context *restful.Context) {
//GetPollingData get the record of the get or list history
func (r *HistoryResource) GetPollingData(context *restful.Context) {
query := &model.PollingDetail{}
sessionId := context.ReadQueryParameter("sessionId")
if sessionId != "" {
query.SessionID = sessionId
sessionID := context.ReadQueryParameter("sessionId")
if sessionID != "" {
query.SessionID = sessionID
}
ip := context.ReadQueryParameter("ip")
if ip != "" {
Expand Down Expand Up @@ -108,7 +108,7 @@ func (r *HistoryResource) GetPollingData(context *restful.Context) {
return
}
if len(records) == 0 {
WriteErrResponse(context, http.StatusNotFound, "no revisions found", common.ContentTypeText)
WriteErrResponse(context, http.StatusNotFound, "no polling data found", common.ContentTypeText)
return
}
err = writeResponse(context, records)
Expand Down

0 comments on commit a2e1a9c

Please sign in to comment.