Skip to content

Commit

Permalink
Database.go cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
Rethakgetse-Manaka committed Jun 7, 2024
1 parent 5b0a455 commit c3ac8ef
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions occupi-backend/pkg/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3ac8ef

Please sign in to comment.