From 7682b87914daba35b7650825f86115fb1d55974c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Urban?= Date: Wed, 11 Oct 2023 18:25:30 +0200 Subject: [PATCH] fix(backend): remove function from db module --- backend/internal/database/database.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/internal/database/database.go b/backend/internal/database/database.go index 1e04a07..62ccc04 100644 --- a/backend/internal/database/database.go +++ b/backend/internal/database/database.go @@ -66,10 +66,5 @@ func InitializeDatabase() (*gorm.DB, error) { return nil, fmt.Errorf("Failed to connect to database: %v", err) } - // After successfully connecting to the database - if err := createAdminUserIfNotExist(db); err != nil { - return nil, fmt.Errorf("Failed to create admin user: %v", err) - } - return db, nil }