Created
October 6, 2021 10:05
-
-
Save albertorestifo/ca5a4beb2f89d1c3151cf16833dd1068 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- return this.prisma.ctrPayrollCompensation.create({ | |
- data: createData, | |
+ return this.prisma.ctrPayrollCompensation.upsert({ | |
+ where: { idepotencyKey } | |
+ create: { ...createData, idepotencyKey }, | |
+ update: {}, | |
include: { | |
rateOfPayUnit: true, | |
cycle: { include: { recurringFrequency: true, recurringPatterns: true } }, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment