feat: show active flows first
This commit is contained in:
@@ -34,6 +34,7 @@ const getFlows = async (_parent: unknown, params: Params, context: Context) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.groupBy('flows.id')
|
.groupBy('flows.id')
|
||||||
|
.orderBy('active', 'desc')
|
||||||
.orderBy('updated_at', 'desc');
|
.orderBy('updated_at', 'desc');
|
||||||
|
|
||||||
return paginate(flowsQuery, params.limit, params.offset);
|
return paginate(flowsQuery, params.limit, params.offset);
|
||||||
|
Reference in New Issue
Block a user