From 474ed791a92c802ca2bde39382c4bbd64b83a170 Mon Sep 17 00:00:00 2001 From: DevMiner Date: Sun, 22 Sep 2024 03:43:22 +0200 Subject: [PATCH] chore: fill extensions column in instance metadata on initialization --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 82a233b..2bd9440 100644 --- a/main.go +++ b/main.go @@ -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" @@ -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).