nixpkgs/pkgs/servers/pocketbase/remove-update-method.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
754 B
Diff
Raw Normal View History

diff --git a/examples/base/main.go b/examples/base/main.go
index 908d31d..04b8f1d 100644
--- a/examples/base/main.go
+++ b/examples/base/main.go
@@ -10,7 +10,6 @@ import (
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/apis"
"github.com/pocketbase/pocketbase/core"
- "github.com/pocketbase/pocketbase/plugins/ghupdate"
"github.com/pocketbase/pocketbase/plugins/jsvm"
"github.com/pocketbase/pocketbase/plugins/migratecmd"
)
@@ -80,9 +79,6 @@ func main() {
Dir: migrationsDir,
})
- // GitHub selfupdate
- ghupdate.MustRegister(app, app.RootCmd, nil)
-
app.OnAfterBootstrap().Add(func(e *core.BootstrapEvent) error {
app.Dao().ModelQueryTimeout = time.Duration(queryTimeout) * time.Second
return nil