Commit 50c01caa authored by Timo Bechtel's avatar Timo Bechtel
Browse files

feat(mongo): add building repo initialization

parent 642fb79d
Pipeline #1806 failed with stages
in 57 seconds
......@@ -10,7 +10,8 @@ import (
var (
// RoomRepository does crud stuff
RoomRepo *repositories.Repository
RoomRepo *repositories.Repository
BuildingRepo *repositories.Repository
)
// Init initializes connection to a database
......@@ -34,4 +35,8 @@ func Init() {
Col: db.Collection("rooms"),
}
BuildingRepo = &repositories.Repository{
Col: db.Collection("buildings"),
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment