From 133b9d90441008ee175e1f8e6369e06309e1392a Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Tue, 7 Feb 2023 23:39:00 +0800 Subject: refactor(db): finish migrate methods off `user.go` (#7337) --- internal/cmd/admin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/cmd') 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"), -- cgit v1.2.3