formatting
This commit is contained in:
parent
1ba7327742
commit
8da136dc34
|
@ -93,7 +93,6 @@ func actionsForUserTableData(c *gin.Context) templates.TableData {
|
||||||
return defaultTableData(c)
|
return defaultTableData(c)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//check for filter
|
//check for filter
|
||||||
filter, filter_exists := c.GetQuery("filter")
|
filter, filter_exists := c.GetQuery("filter")
|
||||||
index := 1
|
index := 1
|
||||||
|
|
|
@ -18,8 +18,8 @@ type EventRecieved struct {
|
||||||
UserId primitive.ObjectID `bson:"user_id,omitempty"` //what user is this associated too
|
UserId primitive.ObjectID `bson:"user_id,omitempty"` //what user is this associated too
|
||||||
VendorName string `bson:"vendor_name,omitempty"` //Vendor name of who sent us the event
|
VendorName string `bson:"vendor_name,omitempty"` //Vendor name of who sent us the event
|
||||||
VendorId string `bson:"vendor_id,omitempty"`
|
VendorId string `bson:"vendor_id,omitempty"`
|
||||||
CorrelationId string `bson:"correlation_id,omitempty"` //list of entities effected or created from action
|
CorrelationId string `bson:"correlation_id,omitempty"` //list of entities effected or created from action
|
||||||
Type string `bson:"type,omitempty"` //type of event
|
Type string `bson:"type,omitempty"` //type of event
|
||||||
}
|
}
|
||||||
|
|
||||||
func (obj *EventRecieved) MongoId() primitive.ObjectID {
|
func (obj *EventRecieved) MongoId() primitive.ObjectID {
|
||||||
|
@ -48,7 +48,7 @@ type ActionTaken struct {
|
||||||
UserId primitive.ObjectID `bson:"user_id,omitempty"` //what user is this associated too
|
UserId primitive.ObjectID `bson:"user_id,omitempty"` //what user is this associated too
|
||||||
TriggeringEvent primitive.ObjectID `bson:"triggering_event,omitempty"` //what triggered this action to be taken
|
TriggeringEvent primitive.ObjectID `bson:"triggering_event,omitempty"` //what triggered this action to be taken
|
||||||
Result string `bson:"result,omitempty"` //list of entities effected or created from action
|
Result string `bson:"result,omitempty"` //list of entities effected or created from action
|
||||||
CorrelationId string `bson:"correlation_id,omitempty"` //list of entities effected or created from action
|
CorrelationId string `bson:"correlation_id,omitempty"` //list of entities effected or created from action
|
||||||
VendorName string `bson:"vendor_name,omitempty"` //Vendor name that the action was taken against
|
VendorName string `bson:"vendor_name,omitempty"` //Vendor name that the action was taken against
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ func (ts *VendorTokenSource) waitForToken(tl *models.TokenLock) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
//We waited to long check if its refreshed and carry on
|
//We waited to long check if its refreshed and carry on
|
||||||
res :=col.FindOne(context.Background(), bson.M{"token_id": tl.TokenId})
|
res := col.FindOne(context.Background(), bson.M{"token_id": tl.TokenId})
|
||||||
if res.Err() != nil {
|
if res.Err() != nil {
|
||||||
return errors.Join(TokenWaitExpired, res.Err())
|
return errors.Join(TokenWaitExpired, res.Err())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue