aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd/admin.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2023-02-07 23:39:00 +0800
committerGitHub <noreply@github.com>2023-02-07 23:39:00 +0800
commit133b9d90441008ee175e1f8e6369e06309e1392a (patch)
tree70f29798055962f6700ba6a93b023a8328a5eff4 /internal/cmd/admin.go
parent7c453d5b3632a6bbdbd99205c518303a9e25a4e1 (diff)
refactor(db): finish migrate methods off `user.go` (#7337)
Diffstat (limited to 'internal/cmd/admin.go')
-rw-r--r--internal/cmd/admin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/cmd/admin.go b/internal/cmd/admin.go
index 54a4a254..8f40bf1c 100644
--- a/internal/cmd/admin.go
+++ b/internal/cmd/admin.go
@@ -52,8 +52,8 @@ to make automatic initialization process more smoothly`,
Name: "delete-inactive-users",
Usage: "Delete all inactive accounts",
Action: adminDashboardOperation(
- db.DeleteInactivateUsers,
- "All inactivate accounts have been deleted successfully",
+ func() error { return db.Users.DeleteInactivated() },
+ "All inactivated accounts have been deleted successfully",
),
Flags: []cli.Flag{
stringFlag("config, c", "", "Custom configuration file path"),