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

Split set_username into register_user and update_username #7

Merged
merged 2 commits into from
Dec 24, 2020
Merged

Conversation

hpeebles
Copy link
Collaborator

No description provided.

}

#[derive(CandidType, Deserialize, Debug)]
pub struct User {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we say type defs at the top followed by impl?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it was type def followed by impl for that type, then the next type, and so on.

@@ -1,10 +1,10 @@
use ic_cdk::storage;
use crate::domain::user_data::UserData;
use crate::domain::user_store::UserStore;

pub fn query() -> Option<String> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a way of getting the details of the current user.
Currently this is the only way.
But we should change this to a 'get_current_user' method which returns more details.

@hpeebles hpeebles merged commit 8d7ccd7 into master Dec 24, 2020
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

Successfully merging this pull request may close these issues.

2 participants