Skip to content

Commit

Permalink
chore: fill extensions column in instance metadata on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDevMinerTV committed Sep 22, 2024
1 parent 8c61854 commit 474ed79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"crypto/tls"
"database/sql"
"database/sql/driver"
"github.com/versia-pub/versia-go/pkg/versia"
"net/http"
"os"
"os/signal"
Expand Down Expand Up @@ -256,6 +257,7 @@ func initInstance(db *ent.Client, telemetry *unitel.Telemetry) error {
err = tx.InstanceMetadata.Create().
SetIsRemote(false).
SetURI(utils.InstanceMetadataAPIURL().String()).
SetExtensions(versia.Extensions{}).
SetName(config.C.InstanceName).
SetNillableDescription(config.C.InstanceDescription).
SetHost(config.C.Host).
Expand Down

0 comments on commit 474ed79

Please sign in to comment.