Ensure position is present (#5291)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2022-10-31 12:13:04 +00:00
1 parent 5c2ad7827e
commit dd9d32815a
1 file changed
+2
+2
View File
@@ -299,6 +299,8 @@ const loggedInViewerRouter = createProtectedRouter()
async resolve({ ctx }) {
const { prisma } = ctx;
const eventTypeSelect = Prisma.validator<Prisma.EventTypeSelect>()({
// Position is required by lodash to sort on it. Don't remove it, TS won't complain but it would silently break reordering
position: true,
hashedLink: true,
destinationCalendar: true,
team: {