console: Schema Registry email alerts bug fix

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9925
GitOrigin-RevId: 9b38a3ce347ed6d82c00303508fca0b0b9156706
This commit is contained in:
nevermore 2023-07-20 21:59:24 +05:30 committed by hasura-bot
parent b0c200d21b
commit d798f74a6e

View File

@ -77,7 +77,7 @@ query fetchAlertConfig($projectId: uuid!, $type: alert_service_type_enum!) {
export const SET_ALERT_CONFIG = gql(`
mutation UpsertAlertConfig($projectId: uuid, $rules: jsonb) {
insert_alert_config(objects: {alert_types: {data: {type: "SchemaRegistryUpdates"}, on_conflict: {constraint: alert_config_alert_type_pkey, update_columns: type}}, project_id: $projectId, enabled: true, alert_config_services: {data: {metadata: "", rules: $rules, type: mail}, on_conflict: {constraint: alert_config_service_pkey, update_columns: rules}}}, on_conflict: {constraint: alert_config_pkey, update_columns: enabled}) {
insert_alert_config(objects: {alert_types: {data: {type: "SchemaRegistryUpdates"}, on_conflict: {constraint: alert_config_alert_type_pkey, update_columns: type}}, project_id: $projectId, enabled: true, alert_config_services: {data: {rules: $rules, type: mail, enabled: true}, on_conflict: {constraint: alert_config_service_pkey, update_columns: rules}}}, on_conflict: {constraint: alert_config_pkey, update_columns: enabled}) {
affected_rows
}
}