diego3g / umbriel

✉️ Umbriel is a simple mailing platform built with Node.js, TypeScript & Prisma.
MIT License
518 stars 73 forks source link

UserRepository is updating in message with User Datas. #177

Open Colgate13 opened 2 years ago

Colgate13 commented 2 years ago

Wasn't the save supposed to update in prisma.user?

async save(user: User): Promise<void> {
    const data = await UserMapper.toPersistence(user)
    await prisma.message.update({
      where: {
        id: user.id,
      },
      data,
    })
}