pele'sghost
05/12/2023, 2:16 AM${window.location.origin}/home
,
target: '_self'
}});`
it opens a new tab .kal
05/12/2023, 4:12 AMRobin's Donuts
05/12/2023, 5:46 AMtspvivek
05/12/2023, 6:01 AMgreentfrapp
05/12/2023, 7:12 AMjfbn
05/12/2023, 7:41 AMjs
const res = await supabaseClient.rpc('set_preferred_club', {
club_id: selectedClub.id
});
club_id
is just a number, not a uuid. in my `clubs`table the column is a ìnt8`
My RPC definition looks like this:
sql
begin
UPDATE public.profiles
SET primary_club = club_id
WHERE profiles.user_id === auth.uid();
end
What should the argument type for my RPC be?
Numeric? Int8?
And how am I supposed to know?
When invoking the function I receive this error message and hint:
"No operator matches the given name and argument types. You might need to add explicit type casts."
hint: "operator does not exist: uuid === uuid"
KoBaGo
05/12/2023, 8:03 AMsupabase-js
, I got this error:
message: 'The object name contains invalid c
characters'
So, Supabase Storage doesn't support names with Japanese in them?
then I want documentation about supported characters.Solias
05/12/2023, 9:13 AMTheRien
05/12/2023, 9:28 AMCREATE POLICY "see_only_own_teams"
ON public.teams
FOR SELECT USING (
auth.uid() = user_id
);
I don't have any policies on organizations currently. In fact, I don't want people to query organizations directly. I just want to do
supabase.from('teams').select('name, organizations (name)')
If I use this query currently, I will get an array of teams, but they will have an empty property organizations. How can I make this property be populated?Ziga
05/12/2023, 9:37 AMts
if (Query) {
query = query.filter('company.name', 'ilike', `%${Query}%`)
query = query.ilike("title", `%${Query}%`)
}
if (Regions) {
const regions = (Regions as string).split(',')
query = query.in("region", regions)
}
if (Categories) {
const categories = (Categories as string).split(',')
query = query.in("job_categories_posts.job_category.id", categories)
}
Le_frog
05/12/2023, 10:18 AMBearer ${req.body.access_token}
,
Prefer: user_id=${req.body.user_id}
});
please help
https://cdn.discordapp.com/attachments/1106525847839576094/1106525848015732867/image.png▾
AMZ7860
05/12/2023, 12:20 PMkouwasi
05/12/2023, 12:24 PMDilly
05/12/2023, 1:06 PMhttps://cdn.discordapp.com/attachments/1106568012103954463/1106568012615663626/image.png▾
https://cdn.discordapp.com/attachments/1106568012103954463/1106568012951203993/image.png▾
formigueiro
05/12/2023, 1:36 PMbash: supabase: command not found
boht in bash and windows terminalvenk
05/12/2023, 1:38 PMtowc
05/12/2023, 2:08 PMClientOptions
with a schema='auth'
, and `grant`ed the service_role
all permissions on all tables in auth
, but when I execute()
the delete
query, PostgREST tells me auth
is not one of the available schemas. Going to "Exposed schemas" in https://app.supabase.com/project/<project>/settings/api
, the auth
schema doesn't show up as an option.
Can I get around that? It seems a bit unnecessary. The most sensible alternative I could find is triggering an sql function: https://stackoverflow.com/questions/75347170/supabase-delete-user-through-application , but this effectively allows arbitrarily messing with the auth
schema, so I don't see why I shouldn't be allowed to do this directly via the SDK.
The use-case is allowing users to delete their accounts by pressing a button, without human interventiontkadlec
05/12/2023, 2:08 PMformigueiro
05/12/2023, 2:16 PMFailed to run sql query: there is no unique constraint matching given keys for referenced table "users"
when im try to create this table linking with auth users
https://cdn.discordapp.com/attachments/1106585757776359494/1106585757965099058/image.png▾
ven
05/12/2023, 3:34 PMError: supabase_migrations.schema_migrations table conflicts with the contents of supabase/migrations.; Expected version 20230503161039 but found migration 20230512150444_initial_schema.sql at index 0.
i even tried starting fresh with a db reset including flushing out the schema_migrations table of any records and the tried but still no luck
here is how i am generating my initial schema migration file.
supabase db diff --use-migra -f initial_schema
Brayan Obispo Torres
05/12/2023, 4:04 PMcreateBrowserSupabaseClient()
with Next.js and Expo, so that when a request is made to the Next.js server, cookies are automatically sent in the headers and the session can be accessed on the server with supabaseServerClient
?timconnors
05/12/2023, 4:33 PMTitusTetricus
05/12/2023, 5:42 PMexport const userProjects: Writable<UserProject[]> = writable([]);
However that then is giving me issues when trying to set the store to the array. The error is long, but it's missing all the Row, Update, Insert, etc. that is defined from the types generated by Supabase CLI.
Are there any docs, or examples online, I haven't found showing how to handle getting Supabase data into the store like this?ItZSoul
05/12/2023, 6:43 PMDannyDanDan
05/12/2023, 7:26 PMtimm
05/12/2023, 7:29 PM▶ supabase db lint --level warning
Linting schema: basejump
Linting schema: nango
Linting schema: public
No schema errors found
On CI:
Run set -e
set -e
supabase db lint --level warning
shell: /usr/bin/bash -e {0}
env:
SUPABASE_INTERNAL_IMAGE_REGISTRY: ghcr.io
Linting schema: public
No schema errors found
What could be causing this?
* Supabase v1.57.7 in use locally + on CI.
* The Github action runs with supabase/setup-cli@v1.1.5.
Reverting back to v.1.45.2 makes CI work again, but I'm dependant on newer features :/Mhd Adnan Askar
05/12/2023, 7:37 PMKiwiHour
05/12/2023, 8:03 PMUnable to process request
error when trying to request an email.
I usually use gmail API, is there a way to set this up with supabase?
https://cdn.discordapp.com/attachments/1106673041070628874/1106673581691261028/image.png▾
https://cdn.discordapp.com/attachments/1106673041070628874/1106673581934522470/image.png▾
KiwiHour
05/12/2023, 8:44 PMformigueiro
05/12/2023, 8:51 PMhttps://cdn.discordapp.com/attachments/1106684978076598332/1106697913654067220/image.png▾