Return this from connect for chaining
This commit is contained in:
@@ -29,6 +29,8 @@ export class DB {
|
||||
this.Activity = connection.model("Activity", Schemas.activitySchema)
|
||||
this.Team = connection.model("Team", Schemas.teamSchema)
|
||||
this.Counter = connection.model("Counter", Schemas.counterSchema)
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
newObjectId(s) {
|
||||
|
||||
Reference in New Issue
Block a user