add missing await
All checks were successful
Build & Push Docker Image / build (push) Successful in 23s
Test & Build / build (push) Successful in 33s

This commit is contained in:
Corban-Lee Jones 2025-05-22 10:49:32 +01:00
parent b209f03cd6
commit bdfd6f15d2

View File

@ -87,7 +87,7 @@ export const patch = async (request: Request, response: Response) => {
try {
const updateArgs = { where: { id: Number(body.id) }, data: updateInputData };
const updateResponse = prisma.messageStyle.update(updateArgs);
const updateResponse = await prisma.messageStyle.update(updateArgs);
response.status(200).json(updateResponse);
} catch (error) {
logger.error(error);