Upstream sync
This commit is contained in:
@@ -28,7 +28,8 @@ type Conn struct {
|
||||
notification *notificationRepo
|
||||
profile *profileRepo
|
||||
organization *organizationRepo
|
||||
zipcodes *zipcodeRepo
|
||||
zipcodes *zipcodeRepo
|
||||
plan *planRepo
|
||||
}
|
||||
|
||||
// Begin starts a transaction
|
||||
@@ -81,10 +82,14 @@ func (c *Conn) Organization() contract.OrganizationRepo {
|
||||
return c.organization
|
||||
}
|
||||
|
||||
func (c *Conn) Zipcodes() contract.ZipcodeRepo{
|
||||
func (c *Conn) Zipcodes() contract.ZipcodeRepo {
|
||||
return c.zipcodes
|
||||
}
|
||||
|
||||
func (c *Conn) Plans() contract.PlanRepo {
|
||||
return c.plan
|
||||
}
|
||||
|
||||
// Instance returns an instance of a DataManager
|
||||
func Instance(cfg *config.Config) (contract.DataManager, error) {
|
||||
once.Do(func() {
|
||||
@@ -117,6 +122,7 @@ func Instance(cfg *config.Config) (contract.DataManager, error) {
|
||||
instance.profile = newProfileRepo(db)
|
||||
instance.organization = newOrganizationRepo(db)
|
||||
instance.zipcodes = newZipcodeRepo(db)
|
||||
instance.plan = newPlanRepo(db)
|
||||
})
|
||||
|
||||
return instance, connErr
|
||||
|
||||
Reference in New Issue
Block a user