mirror of
https://github.com/versia-pub/versia-go.git
synced 2025-12-06 06:28:18 +01:00
chore: fill extensions column in instance metadata on initialization
This commit is contained in:
parent
d691d26e02
commit
ef5f168082
2
main.go
2
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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue