feat: sorting for workflow and routing forms (#10780)

Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-08-31 18:57:33 +00:00
1 parent 781a0f4a7c
commit acaa79b0b8
17 files changed
+723 -286

No files matched your search

@@ -26,9 +26,14 @@ export const formsHandler = async ({ ctx, input }: FormsHandlerOptions) => {
const forms = await prisma.app_RoutingForms_Form.findMany({
where,
orderBy: {
createdAt: "desc",
},
orderBy: [
{
position: "desc",
},
{
createdAt: "asc",
},
],
include: {
team: {
include: {