repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
a6f310e
parent
0f04902
author
Eric Bower
date
2022-07-31 13:20:17 +0000 UTC
fix: log message when user deletes account
1 files changed,  +1, -0
M wish/cms/ui/keys/keys.go
+1, -0
1@@ -411,6 +411,7 @@ func unlinkKey(m Model) tea.Cmd {
2 func deleteAccount(m Model) tea.Cmd {
3 	return func() tea.Msg {
4 		id := m.keys[m.getSelectedIndex()].UserID
5+		m.cfg.Logger.Infof("User (%s) requested account deletion (%s)", m.user.Name, id)
6 		err := m.dbpool.RemoveUsers([]string{id})
7 		if err != nil {
8 			return errMsg{err}