fustuk.
fustuk.
WWasp-lang
Created by fustuk. on 10/10/2024 in #đŸ™‹questions
Wasp Railway Migrations
sorry I just saw that, they have a weird way of interacting with their server... you run railway run {command_to_run} so I deleted the migration, deleted the data that was causing issues and redeployed and it worked
8 replies
WWasp-lang
Created by fustuk. on 10/10/2024 in #đŸ™‹questions
Wasp Railway Migrations
nvm fixed it
8 replies
WWasp-lang
Created by fustuk. on 10/10/2024 in #đŸ™‹questions
Wasp Railway Migrations
is there even a wasp db command for rollbacks?
8 replies
WWasp-lang
Created by dbalbo on 9/13/2024 in #đŸ™‹questions
websockets - emit event from server
it does, but the docs and maybe the config around sockets need to be updated in the future
16 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
gotcha
22 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
regardless its working now :be:
22 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
Thank you! I guess you guys missnamed it or something ?
22 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
thanks but I still get some weird errors :/
const authId = await prisma.auth.findFirst({
where: {
userId: user.id
}
})
console.log(authId)
const y = await prisma.session.create({
data: {
userId: user.id,
id: sessionId,
expiresAt: expirationDate
}
})
const authId = await prisma.auth.findFirst({
where: {
userId: user.id
}
})
console.log(authId)
const y = await prisma.session.create({
data: {
userId: user.id,
id: sessionId,
expiresAt: expirationDate
}
})
2024-09-27 10:25:18.953 UTC [3718] ERROR: insert or update on table "Session" violates foreign key constraint "Session_userId_fkey"
2024-09-27 10:25:18.953 UTC [3718] DETAIL: Key (userId)=(0787f58e-8090-46ee-9c40-399cd6c61546) is not present in table "Auth".
2024-09-27 10:25:18.953 UTC [3718] ERROR: insert or update on table "Session" violates foreign key constraint "Session_userId_fkey"
2024-09-27 10:25:18.953 UTC [3718] DETAIL: Key (userId)=(0787f58e-8090-46ee-9c40-399cd6c61546) is not present in table "Auth".
Foreign key constraint failed on the field: `Session_userId_fkey (index)`
Foreign key constraint failed on the field: `Session_userId_fkey (index)`
But my user is in the auth table
22 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
[ Server!] SyntaxError: The requested module '@prisma/client' does not provide an export named 'Session' I get an error when trying to import it tho
22 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
I saw that the cookie/bearer whatever it is, comes from Session but we dont have a model for it in prisma
22 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
@miho Can you please guide me on where to read in the docs?
22 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
sorry I summoned you here, was intended for the tech lads only đŸ˜„
22 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
@Wasp Team help lads đŸ˜­
22 replies
WWasp-lang
Created by fustuk. on 9/26/2024 in #đŸ™‹questions
Custom session token
cries in spanish
22 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
agree, they dont know what they are doing really, the investor that bought it from me isnt technical he has 1 russian dev that that works for him and thats it
57 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
wasnt me, but another developer, they are creating new frontend repo(not wasp, they dont like monorepos so created a new one for the frontend) and for some reason dont want to use the server localy, rather just gave them access to prod, which is not something im a fan of but its not my concern any more.
57 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
nvm guys it was just wrong payload sorry for the inconvenience
57 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
main.wasp
server: {
middlewareConfigFn: import { serverMiddlewareFn } from "@src/serverSetup"
},
main.wasp
server: {
middlewareConfigFn: import { serverMiddlewareFn } from "@src/serverSetup"
},
57 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
export const serverMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => {
middlewareConfig.set('cors', cors({ origin: [process.env.WASP_WEB_CLIENT_URL, 'http://localhost:3000'] }))
return middlewareConfig
}
export const serverMiddlewareFn: MiddlewareConfigFn = (middlewareConfig) => {
middlewareConfig.set('cors', cors({ origin: [process.env.WASP_WEB_CLIENT_URL, 'http://localhost:3000'] }))
return middlewareConfig
}
57 replies
WWasp-lang
Created by fustuk. on 9/16/2024 in #đŸ™‹questions
Backend public?
No description
57 replies