Amos
Amos
Explore posts from servers
TTCTheo's Typesafe Cult
Created by theFern on 12/13/2022 in #questions
Are there any examples on how to implement web notifications?
Use something like https://novu.co/ or https://knock.app/
3 replies
TTCTheo's Typesafe Cult
Created by Amos on 11/24/2022 in #questions
Sentry with Next.js in an Nx monorepo?
The config files are never called
12 replies
TTCTheo's Typesafe Cult
Created by Max on 11/24/2022 in #questions
axiom + t3, how to log
28 replies
TTCTheo's Typesafe Cult
Created by HAL 9000 on 9/20/2022 in #questions
Lightweight Message Queue for Long running Background Tasks
Way too expensive for 25k requests per month
26 replies
TTCTheo's Typesafe Cult
Created by ديان on 11/18/2022 in #questions
Next auth try signing with a new different account
So it's something with your db
19 replies
TTCTheo's Typesafe Cult
Created by ديان on 11/18/2022 in #questions
Next auth try signing with a new different account
If you aren't using any other providers then disregard what I am saying
19 replies
TTCTheo's Typesafe Cult
Created by ديان on 11/18/2022 in #questions
Next auth try signing with a new different account
(I think)
19 replies
TTCTheo's Typesafe Cult
Created by ديان on 11/18/2022 in #questions
Next auth try signing with a new different account
It could be because another account you already logged in with uses the same email as the Google account
19 replies
TTCTheo's Typesafe Cult
Created by noctate on 11/17/2022 in #questions
Handling duplicates with trpc
model Coin {
id String @id @default(cuid())
favouritedCoins FavouriteCoin[]
}

model FavouriteCoin {
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
userId String
coin Coin @relation(fields: [coinId], references: [id], onDelete: Cascade)
coinId String

@@unique([userId, coinId])
}

model User {
id String @id @default(cuid())
favouriteCoins FavouriteCoin[]
}
model Coin {
id String @id @default(cuid())
favouritedCoins FavouriteCoin[]
}

model FavouriteCoin {
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
userId String
coin Coin @relation(fields: [coinId], references: [id], onDelete: Cascade)
coinId String

@@unique([userId, coinId])
}

model User {
id String @id @default(cuid())
favouriteCoins FavouriteCoin[]
}
Idk maybe something like this if I get what you are trying to do
13 replies
TTCTheo's Typesafe Cult
Created by noctate on 11/17/2022 in #questions
Handling duplicates with trpc
You can add a table in between
13 replies
TTCTheo's Typesafe Cult
Created by noctate on 11/17/2022 in #questions
Handling duplicates with trpc
Ah I get what you are doing
13 replies
TTCTheo's Typesafe Cult
Created by noctate on 11/17/2022 in #questions
Handling duplicates with trpc
Or make the name unique if you want people to only be able to create a coin that doesn't already exist? 🤔
13 replies
TTCTheo's Typesafe Cult
Created by noctate on 11/17/2022 in #questions
Handling duplicates with trpc
You can make the combination of Coin's id and a User's id unique maybe? Not sure if I understand the question
13 replies