Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a user from the database. #34

Closed
malikim opened this issue Jan 30, 2018 · 1 comment
Closed

Deleting a user from the database. #34

malikim opened this issue Jan 30, 2018 · 1 comment
Assignees

Comments

@malikim
Copy link
Contributor

malikim commented Jan 30, 2018

Deleting via command:

/comedianremove @username

Need to do:

  • method for db;
  • method for api;
  • test for bd;
  • test for api.
@malikim
Copy link
Contributor Author

malikim commented Feb 5, 2018

DeleteStandupUser deletes standup_users entry from database

func (m *MySQL) DeleteStandupUserByUsername(username, channelID string) error {
	_, err := m.conn.Exec("DELETE FROM `standup_users` WHERE username=? AND channel_id=?", username, channelID)
	return err
}

@malikim malikim closed this as completed Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant