bug fixed

This commit is contained in:
병준 박 2022-08-23 07:35:04 +00:00
parent f9e6c208ce
commit 2aea4f1a16

View File

@ -207,7 +207,18 @@ impl Service<'_> {
}) })
})?; })?;
let parent_member_id = match request.referrer_member_username { let referrer_member_username = match &request.referrer_member_username {
Some(d) => {
if d.trim().is_empty() {
None
} else {
Some(d.clone())
}
},
None => None,
};
let parent_member_id = match referrer_member_username {
Some(referrer_member_username) => { Some(referrer_member_username) => {
match self match self
.member_repository .member_repository