Skip to content

Commit

Permalink
Merge pull request #44 from bcgov/ssoteam-1454
Browse files Browse the repository at this point in the history
chore: update values
  • Loading branch information
jlangy authored Jul 29, 2024
2 parents 718fa5f + c940044 commit c14162a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aggregator/compactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

func main() {
log.Printf("cronjob starts...")

model.RunEventsJob()
model.RunSessionsJob()
defer model.GetDB().Close()
select {}
}
1 change: 0 additions & 1 deletion aggregator/model/client_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type ClientEvent struct {
func UpsertClientEvent(environment string, realmID string, clientID string, eventType string, date time.Time) error {
query := "INSERT INTO client_events (environment, realm_id, client_id, event_type, date, count) VALUES(?,?,?,?,?,1) ON CONFLICT (environment, realm_id, client_id, event_type, date) DO UPDATE SET count = client_events.count + 1"
_, err := pgdb.Query(nil, query, environment, realmID, clientID, eventType, date)
defer pgdb.Close()
if err != nil {
log.Println(err)
return err
Expand Down
2 changes: 1 addition & 1 deletion helm/grafana/values-e4ca1d-tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ grafana:
type: postgres
access: proxy
orgId: 1
url: sso-aggregator-patroni-readonly:5432
url: sso-aggregator-patroni-readonly.e4ca1d-prod.svc.cluster.local:5432
user: <please-replace-me>
database: <please-replace-me>
basicAuth: false
Expand Down

0 comments on commit c14162a

Please sign in to comment.