Ensure position is present (#5291)
parent
5c2ad7827e
commit
dd9d32815a
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue