mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
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:
parent
b0c200d21b
commit
d798f74a6e
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user