commit
This commit is contained in:
@@ -2,6 +2,7 @@ package database
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"kurumibot/laniakea"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
@@ -25,3 +26,7 @@ func ConnectMongo() {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
}
|
||||
|
||||
func GetMongoCollection(db *laniakea.DatabaseContext, name string) *mongo.Collection {
|
||||
return db.MongoDB.Database(os.Getenv("MONGO_NAME")).Collection(name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user