For some odd reason this function is creating two ...
# orm-help
m
For some odd reason this function is creating two records, even though when I log the function it only prints once
Copy code
return prisma.media.create({
  data: {
    duration,
    loading,
    mediaurl,
    name,
    type,
    user: {
      connect: {
        id: ownerId,
      },
    },
  },
});