BRob
05/06/2020, 11:02 PMduplicate key value violates unique constraint
on upsert calls?
Attempting to figure out a good repro case so I can create an issue but it seems sporadic and I can't quite tell how it is happening.BRob
05/06/2020, 11:03 PMconst create: LogCreateInput = {
id: logId,
owner: { connect: { id: userId } },
type: getLogType(date),
date: normalizeDate(date),
}
return await db.log.upsert({
where: { id: logId },
create,
update: create,
})
Ryan
05/07/2020, 8:33 AMid
field from create
and update
and then check if it works?