Skip to content

Commit

Permalink
Merge pull request #110 from COS301-SE-2024/docs/backend/Update-API-docs
Browse files Browse the repository at this point in the history
View Rooms fixed
  • Loading branch information
Rethakgetse-Manaka authored Jun 29, 2024
2 parents a9d0a4a + 1e31adc commit 2b8d5d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added documentation/SRS-Docs/SRSv2.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion occupi-backend/pkg/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func ConfirmCancellation(ctx *gin.Context, db *mongo.Client, id string, email st

// Gets all rooms available for booking
func GetAllRooms(ctx *gin.Context, db *mongo.Client, floorNo string) ([]models.Room, error) {
collection := db.Database("Occupi").Collection("RoomsV2")
collection := db.Database("Occupi").Collection("Rooms")

var cursor *mongo.Cursor
var err error
Expand Down

0 comments on commit 2b8d5d8

Please sign in to comment.