From 1c2220337cfe4c3cb4214df3bd6cb786457e5415 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Thu, 22 Aug 2024 13:33:15 -0400 Subject: [PATCH] fix: imports de mediaclient --- cmd.go | 7 +++---- main.go | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/cmd.go b/cmd.go index 0d49d7a..dba7205 100644 --- a/cmd.go +++ b/cmd.go @@ -17,7 +17,6 @@ import ( "codeberg.org/vlbeaudoin/pave/v2" "codeberg.org/vlbeaudoin/serpents" - "git.agecem.com/agecem/agecem-org/media" "git.agecem.com/agecem/agecem-org/public" "git.agecem.com/agecem/agecem-org/templates" "git.agecem.com/agecem/agecem-org/version" @@ -127,10 +126,10 @@ var serverCmd = &cobra.Command{ log.Fatal(err) } - mediaClient, err := media.NewMediaClientFromViper() + mediaClient, err := NewMediaClientFromViper() switch err != nil { case true: - log.Printf("media.NewMediaClientFromViper error: %s", err) + log.Printf("NewMediaClientFromViper error: %s", err) case false: new_buckets, err := mediaClient.Seed() if err != nil { @@ -279,7 +278,7 @@ func RunServer() { } // API Routes - mediaClient, err := media.NewMediaClientFromViper() + mediaClient, err := NewMediaClientFromViper() if err != nil { log.Fatal("Error during NewMediaClientFromViper for API handlers") } diff --git a/main.go b/main.go index 51a4077..736ef31 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,5 @@ package main -import "git.agecem.com/agecem/agecem-org/cmd" - func main() { - cmd.Execute() + Execute() }