feat: show active flows first

This commit is contained in:
Ali BARIN
2022-09-18 14:35:42 +02:00
parent 8c12d2dc85
commit 4183884537

View File

@@ -34,6 +34,7 @@ const getFlows = async (_parent: unknown, params: Params, context: Context) => {
}
})
.groupBy('flows.id')
.orderBy('active', 'desc')
.orderBy('updated_at', 'desc');
return paginate(flowsQuery, params.limit, params.offset);