Bugfix/amend schedule reload (#2254)

* Invalidate onSuccess delete instead of reload

* Added schedule name to availability update + fix update invalidation

Co-authored-by: Omar López <[email protected]>
This commit is contained in:
Alex van AndelandOmar López authored and GitHub committed 2022-03-23 23:23:18 +00:00
1 parent f536d1040c
commit e1964553c4
4 files changed
+20 -9

No files matched your search

@@ -191,7 +191,7 @@ export const availabilityRouter = createProtectedRouter()
});
}
await prisma.schedule.update({
const schedule = await prisma.schedule.update({
where: {
id: input.scheduleId,
},
@@ -214,5 +214,9 @@ export const availabilityRouter = createProtectedRouter()
},
},
});
return {
schedule,
};
},
});