Talajax
10/18/2022, 11:35 PMid: string;
name: string;
artist: string[];
cover: string;
ThankscptCrunch
10/19/2022, 12:22 AMFlipers
10/19/2022, 12:38 AMjon.m
10/19/2022, 1:20 AMsql
do $$
begin
for counter in reverse 5..1 loop
raise notice 'counter: %', counter;
end loop;
end; $$
usamichizuru
10/19/2022, 2:42 AMconst { data, error, count } = await supabaseClient
.from("profile")
.select("id,email,username,role,telephone,name,start_shift,end_shift", {
count: "exact",
})
.containedBy("role", ["admin", "employee"])
.range(rangeArray[0], rangeArray[1]);
((()))
10/19/2022, 5:16 AMjs
supabase.from('munies').select('*,muni_offices!muni_users(*)')
however problem is that it leaves out some offices that have no users attached to them. please helpcryptosi
10/19/2022, 10:41 AMALLINUPPERCASE
10/19/2022, 11:38 AMHyperFX
10/19/2022, 1:04 PMsandr
10/19/2022, 1:26 PMPOSTGREST_URL: http://rest:3000 in docker-compose.yml
.
I'm unfamilar with this strategy in Docker. Can someone point me to where or how these domainnames are translated to their respective container IP (if that is what happens)? Is there some local DNS-server running that I am not aware of?
Very curious, thanks!adamjarling
10/19/2022, 1:44 PMAuth
component, etc.TSIA_SN
10/19/2022, 1:52 PMSmardrengr
10/19/2022, 2:43 PMOct 19, 04:48:54 AM: c5565cd6 [ERROR] [1666176534418] LAMBDA_RUNTIME Failed to get next invocation. Http Response code: 403Oct 19, 04:48:54 AM: c5565cd6 2022-10-19T10:48:54.827Z undefined ERROR Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: Dynamic require of \"events\" is not supported","reason":{"errorType":"Error","errorMessage":"Dynamic require of \"events\" is not supported","stack":["Error: Dynamic require of \"events\" is not supported"," at file:///var/task/app/.netlify/functions-internal/render.mjs:29:9"," at node_modules/.pnpm/websocket@1.0.34/node_modules/websocket/lib/utils.js (file:///var/task/app/.netlify/functions-internal/render.mjs:5950:41)"," at __require2 (file:///var/task/app/.netlify/functions-internal/render.mjs:47:50)"," at node_modules/.pnpm/websocket@1.0.34/node_modules/websocket/lib/WebSocketServer.js (file:///var/task/app/.netlify/functions-internal/render.mjs:7457:18)"," at __require2 (file:///var/task/app/.netlify/functions-internal/render.mjs:47:50)"," at node_modules/.pnpm/websocket@1.0.34/node_modules/websocket/lib/websocket.js (file:///var/task/app/.netlify/functions-internal/render.mjs:8445:17)"," at __require2 (file:///var/task/app/.netlify/functions-internal/render.mjs:47:50)"," at node_modules/.pnpm/websocket@1.0.34/node_modules/websocket/index.js (file:///var/task/app/.netlify/functions-internal/render.mjs:8461:22)"," at __require2 (file:///var/task/app/.netlify/functions-internal/render.mjs:47:50)"," at node_modules/.pnpm/@supabase+realtime-
Repo: https://bitbucket.org/r2-creative/gameonornot/src/main/ Any thoughts?Hal
10/19/2022, 3:19 PMsetAuth
is missing in V2.
In my case, I need to change auth role to do different things to control access. how can I handle this for now? Can you bring it back? Thanks
https://github.com/supabase/supabase/issues/8490#issuecomment-1284162765Cheqo
10/19/2022, 3:23 PMmyapp.com/?ref="abc"
I can simply grab this code and when user creates account, I make a call to public users table and attach a value like: refered_by: "abcd"
But, what if they use magic link? when they confirm the email it takes them back to myapp.com
? or can I set it, so that it goes back to a link with a reference code on it?
Here is some that is used with this template.
const getURL = () => {
const url =
process?.env?.URL && process.env.URL !== ''
? process.env.URL
: process?.env?.VERCEL_URL && process.env.VERCEL_URL !== ''
? process.env.VERCEL_URL
: 'http://localhost:3000';
return url.includes('http') ? url : `https://${url}`;
};
const { error } = await supabaseClient.auth.signIn(
{ email, password },
{ redirectTo: getURL() }
);
Does this preserve the query params? or do I need to do something else?ccssmnn
10/19/2022, 3:36 PMhttp://localhost:54321/rest/v1/
.
It seems supabase studio is also trying to reach for the Supabase URL, but I cannot find a way to change this URL to e.g. 54323-MY-WORKSPACE.gitpod.io/rest/v1
.InASunshineState
10/19/2022, 6:04 PMDaddymilker4000
10/19/2022, 6:08 PMconst session = useSession();
console.log(session) -> null
package.json
"react": "18.2.0",
"react-dom": "18.2.0",
"react-redux": "^8.0.4"
"@supabase/auth-helpers-nextjs": "^0.4.1",
"@supabase/auth-helpers-react": "^0.3.0",
"@supabase/auth-ui-react": "^0.2.2",
"@supabase/supabase-js": "^2.0.2",
johnnypea
10/19/2022, 6:53 PMQRST
10/19/2022, 7:41 PMCrisisgone
10/19/2022, 9:04 PMuser8923
10/19/2022, 9:15 PMjs
const [supabaseClient] = useState(() => createBrowserSupabaseClient());
I'm new to React so I'm not quite sure what purpose it serves vs just calling createBrowserSupabaseClient directly?foci
10/19/2022, 9:26 PM5lghtct
10/19/2022, 10:18 PMSmardrengr
10/19/2022, 10:35 PMbesimon
10/20/2022, 1:00 AMjavascript
export default async function handler(req, res) {
const jokesID = req.query.id;
const method = req.method;
switch (method) {
case "GET":
const { data: getJoke } = await supabase
.from("jokes")
.select("id, joke, user_id")
.eq("id", jokesID)
.single();
if (getJoke) {
res.status(200).json(getJoke);
} else {
res.status(404).json({
error: "Joke not found. Try checking the id or reload the page.",
});
}
break;
case "DELETE":
const { data: delJoke, error: delError } = await supabase
.from("jokes")
.delete()
.eq("id", jokesID);
if (delJoke) {
res.status(200).json(delJoke);
} else {
res.status(404).json({ error: delError.message });
}
break;
case "PATCH":
let { joke, user_id } = req.body;
const { data: patchJoke, error: patchError } = await supabase
.from("jokes")
// On save, the following line changes "joke" to joke and "user_id" to user_id.
// I think this may be the problem (How to stop?)
.update([{ joke: joke, user_id: user_id }])
.eq("id", jokesID);
if (patchJoke) {
res.status(200).json(patchJoke);
}
if (patchError) {
res.status(400).json({ error: patchError });
}
break;
default:
res.status(405).json({ error: `Method ${method} not allowed` }
);
break;
}
}
Chen
10/20/2022, 1:25 AMArne
10/20/2022, 4:18 AMbrew upgrade supabase
upgrade only the CLI or also the Supabase services (Kong, Gotrue, DB, etc..)?retr0
10/20/2022, 6:56 AMTomasz Szczuciński
10/20/2022, 8:27 AM