Rarity
PPrisma
•Created by Rarity on 6/28/2024 in #help-and-questions
nested transactions
@moosthuizen it worked with my syntax prisma.transcation(async ptrans => {}) but i need to give the ptrans into every single function and use it there and not my prisma client, its disgusting but working
6 replies
PPrisma
•Created by Rarity on 6/28/2024 in #help-and-questions
nested transactions
yeah i guess i have to rearrange my code - i dont like that tbh because i need to call this functions on its own on a functions but i guess i can only go like that - ty
6 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
na the data.price comes from a input box, so u enter the price there, and after that i create a new pricehistoryentry with the new prisma.decimal
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
yeah but data.price is a number, data.price = 10 for example and i call new Prisma.Decimal(10), or do i need to call new Prisma.Decimal(Number(data.price)) ?
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
while data.price is of type number
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
sure give me a second
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
yeah but why lol i just store it with prisma into a postgres db 😦
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
it is false on my side 😄 so my obect is not a Prisma.Decimal
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
and therefore i get a Number(prismaDecimalObject.ToString()) -> NaN
19 replies
PPrisma
•Created by Rarity on 3/20/2024 in #help-and-questions
Prisma.Decimal is not a Decimal
hey, if i do the prismaDecimalObject.toString() i get a return Value -> [object Object] and no the number thats why i am confused so much
19 replies