Return this from connect for chaining

This commit is contained in:
John Lyon-Smith
2018-04-20 17:51:02 -07:00
parent f7c73ee277
commit 60d51ea5a9
2 changed files with 33 additions and 24 deletions

View File

@@ -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) {