yourfriend
11/08/2021, 6:38 PMundefined
for a value of an object to be upserted doesn't seem to translate to upserting as NULL (as you might expect?) instead it doesn't bother trying to use that key value pair and so i was getting the All object keys must match
erroryourfriend
11/08/2021, 6:39 PMMike92988
11/08/2021, 9:18 PMScott P
11/08/2021, 9:41 PMSELECT to_timestamp(<epoch time>);
To convert from datetime to Unix timestamp in ms: SELECT EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '<date time>')
(Search for 'epoch' on this page for more details and examples: https://www.postgresql.org/docs/9.2/functions-datetime.html)
Side note: Anything regarding SQL should go in the #869405720934744086 channel insteadXzeta
11/10/2021, 2:15 AMScott P
11/10/2021, 2:26 AMhoesmean
11/10/2021, 12:47 PMsilentworks
11/10/2021, 12:57 PMXzeta
11/10/2021, 7:59 PMuseEffect(() => {
const fetchJobs = async () => {
setLoading(true);
setErrorMessage(false);
try {
const { data, error } = await supabase.from("jobs");
if (error) throw error;
setJobs(data);
} catch (error) {
setJobs(null);
setErrorMessage(true);
} finally {
setLoading(false);
}
};
fetchJobs();
// return () => fetchJobs();
}, []);
egnus
11/10/2021, 8:29 PM.select('*')
?Xzeta
11/10/2021, 9:24 PMchipilov
11/10/2021, 10:22 PMTerry
11/10/2021, 11:18 PMTerry
11/10/2021, 11:18 PMTerry
11/10/2021, 11:19 PMMike92988
11/11/2021, 3:11 PMisaiah
11/12/2021, 6:48 AMisaiah
11/12/2021, 6:52 AMsupabase.auth.user()
doesn't return a promise, across stackexchange, github, reddit, and this discord. It's totally unintuitive, and it makes it massive headache to implement auth flows that should be trivial. Doesn't look like Supabase has plans to change it, though. Anyone got a favorite solution?chipilov
11/12/2021, 8:04 AMSleighty
11/12/2021, 8:51 AMid
, aud:authenticated
, role:authenticated
, the email address, email_confirmed_ad
, phone
, and other bits of data. is that normal?
doesn't that give anyone ability to see 1) who's registered in my app, 2) their phone numbers, 3) their last login date, and who knows what else? I would expect to get an error "email already registered" like in firebase maybe?chipilov
11/12/2021, 9:23 AMchipilov
11/12/2021, 9:39 AMYelloJello
11/12/2021, 9:40 AMYelloJello
11/12/2021, 9:42 AMSleighty
11/12/2021, 9:45 AMYelloJello
11/12/2021, 9:46 AMYelloJello
11/12/2021, 9:46 AMSleighty
11/12/2021, 9:46 AMSleighty
11/12/2021, 9:46 AMYelloJello
11/12/2021, 9:47 AM