umbriel icon indicating copy to clipboard operation
umbriel copied to clipboard

UserRepository is updating in message with User Datas.

Open Colgate13 opened this issue 2 years ago • 0 comments

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,
    })
}

Colgate13 avatar Aug 22 '22 20:08 Colgate13