From c3ac8ef1b1cd22bca63a9cb7bb6bf183baf6b957 Mon Sep 17 00:00:00 2001 From: Rethakgetse-Manaka Date: Fri, 7 Jun 2024 10:08:26 +0200 Subject: [PATCH] Database.go cleaned up --- occupi-backend/pkg/database/database.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/occupi-backend/pkg/database/database.go b/occupi-backend/pkg/database/database.go index db1e8fd5..5ba12c43 100644 --- a/occupi-backend/pkg/database/database.go +++ b/occupi-backend/pkg/database/database.go @@ -17,13 +17,6 @@ import ( "github.com/gin-gonic/gin" ) -// Database interface allows us to isolate business logic from the database implementation while allowing us to -// mock the database for testing purposes -type Database interface { - EmailExists(ctx *gin.Context, db *mongo.Client, email string) bool - BookingExists(ctx *gin.Context, db *mongo.Client, bookingID int) bool -} - // attempts to and establishes a connection with the remote mongodb database func ConnectToDatabase() *mongo.Client { // MongoDB connection parameters