🐛 order recipient by id to avoid order change in ui on reload

This commit is contained in:
Timur Ercan
2023-03-06 18:04:56 +01:00
parent 4a44bda1a5
commit dc333a5fc8

View File

@ -18,7 +18,11 @@ export const getDocument = async (
userId: user.id,
},
include: {
Recipient: true,
Recipient: {
orderBy: {
id: "asc",
},
},
Field: { include: { Recipient: true, Signature: true } },
},
});