Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2

Этот коммит содержится в:
Martin Kraft
2018-05-17 07:53:16 -04:00
родитель 319d61123a 1f6c271b3b
Коммит 6f31d90e2f
86 изменённых файлов: 1539 добавлений и 22384 удалений

Просмотреть файл

@@ -114,7 +114,7 @@ type API struct {
BaseRoutes *Routes
}
func Init(a *app.App, root *mux.Router, full bool) *API {
func Init(a *app.App, root *mux.Router) *API {
api := &API{
App: a,
BaseRoutes: &Routes{},
@@ -234,10 +234,7 @@ func Init(a *app.App, root *mux.Router, full bool) *API {
root.Handle("/api/v4/{anything:.*}", http.HandlerFunc(api.Handle404))
// REMOVE CONDITION WHEN APIv3 REMOVED
if full {
a.InitEmailBatching()
}
a.InitEmailBatching()
return api
}