mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 01:39:01 +08:00
parent
5424c7714f
commit
1293378c5c
@ -737,7 +737,7 @@ func (r *ClickHouseReader) DeleteChannel(id string) *model.ApiError {
|
|||||||
|
|
||||||
err = tx.Commit()
|
err = tx.Commit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.S().Errorf("Error in commiting transaction for DELETE command to notification_channels\n", err)
|
zap.S().Errorf("Error in committing transaction for DELETE command to notification_channels\n", err)
|
||||||
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -843,7 +843,7 @@ func (r *ClickHouseReader) EditChannel(receiver *am.Receiver, id string) (*am.Re
|
|||||||
|
|
||||||
err = tx.Commit()
|
err = tx.Commit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.S().Errorf("Error in commiting transaction for INSERT to notification_channels\n", err)
|
zap.S().Errorf("Error in committing transaction for INSERT to notification_channels\n", err)
|
||||||
return nil, &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
return nil, &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -887,7 +887,7 @@ func (r *ClickHouseReader) CreateChannel(receiver *am.Receiver) (*am.Receiver, *
|
|||||||
|
|
||||||
err = tx.Commit()
|
err = tx.Commit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.S().Errorf("Error in commiting transaction for INSERT to notification_channels\n", err)
|
zap.S().Errorf("Error in committing transaction for INSERT to notification_channels\n", err)
|
||||||
return nil, &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
return nil, &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -932,7 +932,7 @@ func (r *ClickHouseReader) CreateRule(rule string) *model.ApiError {
|
|||||||
}
|
}
|
||||||
err = tx.Commit()
|
err = tx.Commit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.S().Errorf("Error in commiting transaction for INSERT to rules\n", err)
|
zap.S().Errorf("Error in committing transaction for INSERT to rules\n", err)
|
||||||
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
@ -974,7 +974,7 @@ func (r *ClickHouseReader) EditRule(rule string, id string) *model.ApiError {
|
|||||||
|
|
||||||
err = tx.Commit()
|
err = tx.Commit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.S().Errorf("Error in commiting transaction for UPDATE to rules\n", err)
|
zap.S().Errorf("Error in committing transaction for UPDATE to rules\n", err)
|
||||||
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1020,7 +1020,7 @@ func (r *ClickHouseReader) DeleteRule(id string) *model.ApiError {
|
|||||||
|
|
||||||
err = tx.Commit()
|
err = tx.Commit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.S().Errorf("Error in commiting transaction for deleting rules\n", err)
|
zap.S().Errorf("Error in committing transaction for deleting rules\n", err)
|
||||||
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ func (mds *ModelDaoSqlite) UpdateUserPreferece(ctx context.Context, userPreferen
|
|||||||
|
|
||||||
err = tx.Commit()
|
err = tx.Commit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.S().Errorf("Error in commiting transaction for INSERT to user_preferences\n", err)
|
zap.S().Errorf("Error in committing transaction for INSERT to user_preferences\n", err)
|
||||||
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
|
||||||
}
|
}
|
||||||
telemetry.GetInstance().SetTelemetryAnonymous(userPreferences.GetIsAnonymous())
|
telemetry.GetInstance().SetTelemetryAnonymous(userPreferences.GetIsAnonymous())
|
||||||
|
@ -16,5 +16,5 @@ fi
|
|||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "❌ Failed to delete HotROD sample application"
|
echo "❌ Failed to delete HotROD sample application"
|
||||||
else
|
else
|
||||||
echo "✅ Succesfully deleted HotROD sample application"
|
echo "✅ Successfully deleted HotROD sample application"
|
||||||
fi
|
fi
|
||||||
|
@ -48,5 +48,5 @@ kubectl apply --namespace="${HOTROD_NAMESPACE}" -f <( \
|
|||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "❌ Failed to deploy HotROD sample application"
|
echo "❌ Failed to deploy HotROD sample application"
|
||||||
else
|
else
|
||||||
echo "✅ Succesfully deployed HotROD sample application"
|
echo "✅ Successfully deployed HotROD sample application"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user