Commit e333a56c authored by Lee Brown's avatar Lee Brown

fix webapp masterdb

parent 58b43686
......@@ -2,4 +2,5 @@ export WEB_API_DB_HOST=127.0.0.1:5433
export WEB_API_DB_USER=postgres
export WEB_API_DB_PASS=postgres
export WEB_API_DB_DISABLE_TLS=true
export WEB_API_REDIS_HOST=:6378
export WEB_API_SERVICE_EMAIL_SENDER=valdez@example.com
......@@ -452,9 +452,9 @@ func main() {
prjRepo := project.NewRepository(masterDb)
appCtx := &handlers.AppContext{
Log: log,
Env: cfg.Env,
//MasterDB: masterDb,
Log: log,
Env: cfg.Env,
MasterDB: masterDb,
Redis: redisClient,
TemplateDir: cfg.Service.TemplateDir,
StaticDir: cfg.Service.StaticFiles.Dir,
......
......@@ -2,4 +2,5 @@ export WEB_APP_DB_HOST=127.0.0.1:5433
export WEB_APP_DB_USER=postgres
export WEB_APP_DB_PASS=postgres
export WEB_APP_DB_DISABLE_TLS=true
export WEB_APP_REDIS_HOST=:6378
export WEB_APP_SERVICE_EMAIL_SENDER=valdez@example.com
\ No newline at end of file
......@@ -33,8 +33,6 @@ func Errors(log *log.Logger, renderer web.Renderer) web.Middleware {
log.Printf("ERROR : %+v", er)
}
// Respond to the error.
if web.RequestIsJson(r) {
if err := web.RespondJsonError(ctx, w, er); err != nil {
......
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