-
Notifications
You must be signed in to change notification settings - Fork 9
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
/send checks create/claim shovel integrations #655
base: feat/send-checks-ui-mvp
Are you sure you want to change the base?
Conversation
9bec9fd
to
cfacb7b
Compare
supabase/migrations/20240809183933_update_send_check_created_table_use_event_id.sql
Outdated
Show resolved
Hide resolved
supabase/migrations/20240809183933_update_send_check_created_table_use_event_id.sql
Outdated
Show resolved
Hide resolved
supabase/migrations/20240809190723_update_send_check_claimed_table_use_event_id.sql
Outdated
Show resolved
Hide resolved
cfacb7b
to
82c4e97
Compare
Vercel Unique URL: https://sendapp-gepp45od1-0xsend.vercel.app |
-- Policy for viewing claimed checks: Users can only select their own claimed checks | ||
CREATE POLICY "Users can see their own claimed checks" ON "public"."send_check_claimed" FOR | ||
SELECT USING ( | ||
lower(concat('0x', encode(send_check_claimed.redeemer, 'hex')))::citext in ( |
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.
Let's add an OR
also checking the from
. Users should be able to see their claimed checks.
select user_id into _f_user_id from send_accounts where address = concat('0x', encode(NEW.from, 'hex'))::citext; | ||
|
||
-- populate t_user_id with receiver's user_id | ||
select user_id into _t_user_id from send_accounts where address = concat('0x', encode(NEW.reedeemer, 'hex'))::citext; |
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.
The column name reedeemer
in this query is misspelled - it should be redeemer
to match the corresponding column name in the send_check_claimed
table.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
TODO: