-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: development
Are you sure you want to change the base?
Conversation
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
implemented subscribe video feature of youtube into dev env
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), |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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