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

Apply referral code #24

Open
wants to merge 10 commits into
base: development
Choose a base branch
from
Open

Apply referral code #24

wants to merge 10 commits into from

Conversation

bkg866
Copy link
Collaborator

@bkg866 bkg866 commented Nov 15, 2022

  • New cell added to apply referral code
  • Integrated UI of applying referral code
  • Created a new display async node and its view controller to manage the applied referral code
  • Insert data into the points table when the user applied to the referral code

@wweevv-johndpope
Copy link
Owner

taking a look now.


let _ = try await client.from("user")
.upsert(
values: WevUser(userId: peer.id.id._internalGetInt64Value(), firstname: peer.firstName, lastname: peer.lastName, username: peer.username, phone: peer.phone, referralcode: refralCode),
Copy link

@johndpope johndpope Nov 18, 2022

Choose a reason for hiding this comment

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

@bkg866 - this will be a problem unless we can lock down tables with RLS.
Are you sure it's "user" - that's reserved - it should be wev_user

}
do {

let cuurentUser = try await client

Choose a reason for hiding this comment

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

you can just use client? here instead of guard let dance. should be currentUser

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.

3 participants