Improvements to mobile UI (#119)

This commit is contained in:
Luke Vella 2022-04-20 16:09:38 +01:00 committed by GitHub
parent f206d31083
commit dde0fe8ea1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 971 additions and 317 deletions

View file

@ -27,6 +27,9 @@ export default withLink(
include: {
votes: true,
},
orderBy: {
value: "asc",
},
},
participants: {
include: {
@ -119,6 +122,9 @@ export default withLink(
include: {
votes: true,
},
orderBy: {
value: "asc",
},
},
participants: {
include: {

View file

@ -1,5 +1,5 @@
import { prisma } from "../../../../../db";
import { getQueryParam,withLink } from "../../../../../utils/api-utils";
import { getQueryParam, withLink } from "../../../../../utils/api-utils";
export default withLink(async (req, res, link) => {
const participantId = getQueryParam(req, "participantId");
@ -44,5 +44,6 @@ export default withLink(async (req, res, link) => {
return res.end();
default:
return res.status(405);
}
});