feat: support configuring pb-data-dir on app launch

This commit is contained in:
Fu Diwei
2025-01-16 22:23:00 +08:00
parent d1dbbae101
commit 087fd81879
2 changed files with 13 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ import (
const tableName = "workflow"
func RegisterEvents() error {
func Register() {
app := app.GetApp()
app.OnRecordAfterCreateRequest(tableName).Add(func(e *core.RecordCreateEvent) error {
@@ -28,8 +28,6 @@ func RegisterEvents() error {
app.OnRecordAfterDeleteRequest(tableName).Add(func(e *core.RecordDeleteEvent) error {
return delete(e.HttpContext.Request().Context(), e.Record)
})
return nil
}
func update(ctx context.Context, record *models.Record) error {