Change the App dependency with Server in migrations package (#14804)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a9ba052207
Коммит
e2e352e223
@@ -20,12 +20,12 @@ const (
|
||||
)
|
||||
|
||||
type MigrationsJobInterfaceImpl struct {
|
||||
App *app.App
|
||||
srv *app.Server
|
||||
}
|
||||
|
||||
func init() {
|
||||
app.RegisterJobsMigrationsJobInterface(func(a *app.App) tjobs.MigrationsJobInterface {
|
||||
return &MigrationsJobInterfaceImpl{a}
|
||||
app.RegisterJobsMigrationsJobInterface(func(s *app.Server) tjobs.MigrationsJobInterface {
|
||||
return &MigrationsJobInterfaceImpl{s}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user