kir-dev / programSCH

Kir-Dev újoncprojekt.
https://program-sch-frontend.vercel.app
0 stars 1 forks source link

Use DTOs #15

Open DannySS123 opened 1 month ago

DannySS123 commented 1 month ago

Some DTO-s are defined, but not used anywhere (e.g. UpdateUserDto, CreateEventDto, etc.). Either use them or remove them if they are not necessary.

justnyx commented 1 month ago

Screenshot 2024-05-27 190257

i need some help with this @DannySS123

DannySS123 commented 1 month ago

@justnyx oh, I forgot to mention that this issue is dependent on the other one: https://github.com/kir-dev/programSCH/issues/16 since we don't want to pass e.g. the users to an event as a field, but rather use the prisma connect to create the relations in the db. It looks something like this, but feel free tocheck it In the prisma docs image

justnyx commented 1 month ago

Does this mean I need to pass the authSchId as a parameter for the create function? @DannySS123

DannySS123 commented 1 month ago

@justnyx Nope, this is just an example, but we usually connect with ID-s

SzBeni2003 commented 2 weeks ago

kép Képernyőkép 2024-07-05 012952 Ezek vajon mitől lehetnek? Lehet, hogy egy migration lemaradt, vagy valami más okozhatja ezt? Az első kép mindenütt előjön, a második csak a create és update függvényeknél. (Sajnos csak most csatlakoztam be, ezért nem tudom, pontosan mik voltak végrehajtva menet közben)

SzBeni2003 commented 2 weeks ago

Ha jól látom, akkor a Prismában nincsen link, de van ownerId, ez okozza az egyik conflictot

SzBeni2003 commented 2 weeks ago

kép

DannySS123 commented 1 week ago

@SzBeni2003

SzBeni2003 commented 1 week ago

Ezeket már megoldottuk azóta közösen😅 Annyi volt a megoldás hogy a @prisma/client-ből importáltunk minden saját enumot, és akkor megoldódott a conflict

DannySS123 commented 1 week ago

Szuper!