fix: imports de mediaclient
This commit is contained in:
parent
230b4e5db6
commit
1c2220337c
2 changed files with 4 additions and 7 deletions
7
cmd.go
7
cmd.go
|
@ -17,7 +17,6 @@ import (
|
||||||
|
|
||||||
"codeberg.org/vlbeaudoin/pave/v2"
|
"codeberg.org/vlbeaudoin/pave/v2"
|
||||||
"codeberg.org/vlbeaudoin/serpents"
|
"codeberg.org/vlbeaudoin/serpents"
|
||||||
"git.agecem.com/agecem/agecem-org/media"
|
|
||||||
"git.agecem.com/agecem/agecem-org/public"
|
"git.agecem.com/agecem/agecem-org/public"
|
||||||
"git.agecem.com/agecem/agecem-org/templates"
|
"git.agecem.com/agecem/agecem-org/templates"
|
||||||
"git.agecem.com/agecem/agecem-org/version"
|
"git.agecem.com/agecem/agecem-org/version"
|
||||||
|
@ -127,10 +126,10 @@ var serverCmd = &cobra.Command{
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
mediaClient, err := media.NewMediaClientFromViper()
|
mediaClient, err := NewMediaClientFromViper()
|
||||||
switch err != nil {
|
switch err != nil {
|
||||||
case true:
|
case true:
|
||||||
log.Printf("media.NewMediaClientFromViper error: %s", err)
|
log.Printf("NewMediaClientFromViper error: %s", err)
|
||||||
case false:
|
case false:
|
||||||
new_buckets, err := mediaClient.Seed()
|
new_buckets, err := mediaClient.Seed()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -279,7 +278,7 @@ func RunServer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// API Routes
|
// API Routes
|
||||||
mediaClient, err := media.NewMediaClientFromViper()
|
mediaClient, err := NewMediaClientFromViper()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Error during NewMediaClientFromViper for API handlers")
|
log.Fatal("Error during NewMediaClientFromViper for API handlers")
|
||||||
}
|
}
|
||||||
|
|
4
main.go
4
main.go
|
@ -1,7 +1,5 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.agecem.com/agecem/agecem-org/cmd"
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cmd.Execute()
|
Execute()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue