Reformatting Request params (#26)

* TP-0000 | invite oncall while incident creation

* TP-0000 | chaning naming on test environment

* TP-0000 | adding log in invite user function

* TP-0000 | renaming query params
This commit is contained in:
Shubham Kirve
2023-04-21 22:07:32 +05:30
committed by GitHub Enterprise
parent 621a7ce3ea
commit 7b2c1e03e2
2 changed files with 3 additions and 3 deletions

View File

@@ -56,8 +56,8 @@ func NewIncidentService(gin *gin.Engine, logger *zap.Logger, db *gorm.DB, socket
func (i *incidentService) GetIncidents(c *gin.Context) {
IncidentId := c.Param("id")
TeamIds := c.Query("teamIds")
SeverityIds := c.Query("severityIds")
TeamIds := c.Query("team_ids")
SeverityIds := c.Query("severity_ids")
Status := c.Query("statuses")
if IncidentId != "" {

View File

@@ -36,7 +36,7 @@ func(u *userService) GetUserInfo(c *gin.Context) {
}
func(u *userService) GetUsersInConversation(c *gin.Context) {
channelId := c.Query("channelId")
channelId := c.Query("channel_id")
users, err := u.client.GetUsersInConversation(channelId)
if err != nil {