mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
366 B
Go
21 lines
366 B
Go
package bootstrap
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/synctv-org/synctv/internal/db"
|
|
"github.com/synctv-org/synctv/internal/vendor"
|
|
)
|
|
|
|
func InitVendorBackend(ctx context.Context) error {
|
|
vb, err := db.GetAllVendorBackend()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
bc, err := vendor.NewBackendConns(ctx, vb)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return vendor.StoreConns(bc)
|
|
}
|