Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/database/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ func (db *PostgreSQL) CreateServer(ctx context.Context, server *apiv0.ServerJSON
query := `
INSERT INTO servers (version_id, value)
VALUES ($1, $2)
ON CONFLICT (version_id) DO NOTHING
`

_, err = db.pool.Exec(ctx, query, versionID, valueJSON)
Expand Down Expand Up @@ -385,7 +386,7 @@ func (db *PostgreSQL) UpdateServer(ctx context.Context, id string, server *apiv0

// Update the complete server record using version_id
query := `
UPDATE servers
UPDATE servers
SET value = $1
WHERE version_id = $2
`
Expand Down
Loading