stibbs
09/06/2021, 1:00 AMstibbs
09/06/2021, 1:01 AMupdatedAt timestamp with time zone default timezone('utc'::text, now()) not null
waptik
09/06/2021, 1:01 AMupdatedAt
but not updatedat
stibbs
09/06/2021, 1:02 AMupdatedAt
instead of updatedat
JoshTheNerd
09/06/2021, 1:04 AMwaptik
09/06/2021, 1:04 AMstibbs
09/06/2021, 1:05 AMwaptik
09/06/2021, 1:07 AMts
async updateUserAccount(user: Partial<User>, id: string) {
try {
const { error: supaError } = await supabase
.from<User>("users")
.update(user, {
returning: "minimal",
})
.match({ id });
if (supaError) {
throw supaError;
}
return true;
} catch (error) {
captureException(error, {
tags: {
from: "[Database.createUserAccount]",
description: error.message,
},
});
throw error;
}
}
stibbs
09/06/2021, 1:09 AMuser
you are passing to updateUserAccount/2
?waptik
09/06/2021, 1:12 AMawait updateUserAccount({paystackSubaccountId: "ACCT_XXXXXX"}, "some-valid-uuid-for-user")
stibbs
09/06/2021, 1:18 AMstibbs
09/06/2021, 1:19 AMpaystackSubaccountId
waptik
09/06/2021, 1:20 AMpaystackSubaccountId
.stibbs
09/06/2021, 1:20 AMupdatedAt
column, how did you do that?stibbs
09/06/2021, 1:21 AMjavascript
.update(user, {
returning: "minimal",
})
waptik
09/06/2021, 1:21 AMwaptik
09/06/2021, 1:22 AMpaystackSubaccountId
from the dashboardstibbs
09/06/2021, 1:22 AMstibbs
09/06/2021, 1:23 AMstibbs
09/06/2021, 1:23 AMupdatedAt
column to updatedat
and see if the error is the samewaptik
09/06/2021, 1:24 AMupdatedAt
to updatedat
then changed value of paystackSubaccountId
and it was saved without any issuePeanut
09/06/2021, 1:39 AMJWTIssuedAtFuture
when creating JWTs?
Basically I have a Firebase Function that issues a JWT for my users so they can query my Supabase DB.
I am running my function locally on my machine in WSL. Apparently WSL has an issue with clock drift.
Is it maybe possible to disable that expiry check in Supabase? I am using a test project so dont care about this stuff (only in prod)Peanut
09/06/2021, 2:52 AMMichael Ketzer | streamgeist.com
09/06/2021, 6:17 AM(uid() = user_id)
+ WITH CHECK (role() = 'authenticated':: text)
.jason-lynx
09/06/2021, 7:10 AMWITH CHECK
?patrik
09/06/2021, 8:04 AMMichael Ketzer | streamgeist.com
09/06/2021, 11:04 AMsilentworks
09/06/2021, 11:48 AMupdatedAt
use updated_at
.Andy | Spillhosting.no
09/06/2021, 12:01 PMFetchError: request to SUPABSEURL failed, reason: getaddrinfo ENOTFOUND URL
0|server | at ClientRequest.<anonymous> (/root/games/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1461:11)
0|server | at ClientRequest.emit (node:events:394:28)
0|server | at TLSSocket.socketErrorListener (node:_http_client:447:9)
0|server | at TLSSocket.emit (node:events:394:28)
0|server | at emitErrorNT (node:internal/streams/destroy:157:8)
0|server | at emitErrorCloseNT (node:internal/streams/destroy:122:3)
0|server | at processTicksAndRejections (node:internal/process/task_queues:83:21) {
0|server | type: 'system',
0|server | errno: 'ENOTFOUND',
0|server | code: 'ENOTFOUND'
0|server | }
Thomas B
09/06/2021, 12:05 PM