How is this even possible ?
my updatedUser is null, and no updated has been performed
But the data exist since the user is found successfully
no error is thrown by prisma just updatedUser being null
with console loggin User not found or update failed transactionId
where: {
something: xxx,
userId,
},
});
if (!userFound) {
this.logger.log(
`userFound not found`,
);
return null;
}
this.logger.debug('User found');
const updatedUser = await this.db.users.update({
where: {
something: xxx,
userId,
},
data: {
name,
alias,
},
});
if (!updatedUser) {
this.logger.log(
`User not found or update failed transactionId`,
);
return null;
}