Commit cda97fad authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Also remove link codes

This closes #19.
parent 081632b8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -95,6 +95,10 @@ func ActionUserDelete(cmd *dclish.Command) error {
		return nil
	}
	ctx := storage.Context()
	if err := this.Q.DeleteLinkCodesByLogin(ctx, u.Login); err != nil {
		fmt.Printf("ERROR: Failed to delete user's link codes (%s).\n", err)
		return nil
	}
	err = this.Q.DeleteUser(ctx, u.Login)
	if err != nil {
		fmt.Printf("ERROR: Failed to delete user (%s).\n", err)