🐛 Remove redundant error handling in getLastHourResults function

This commit is contained in:
Baptiste Arnaud 2026-01-02 18:02:16 +01:00
parent f50674cc73
commit 1baaf73c9e
No known key found for this signature in database

View File

@ -468,11 +468,5 @@ const getLastHourResults = async () => {
},
} satisfies Prisma.Prisma.ResultGroupByArgs;
try {
const response = await prisma.result.groupBy(queryParams);
return response;
} catch (err) {
console.error("Failed to get last hour results, retrying once...", err);
return prisma.result.groupBy(queryParams);
}
return prisma.result.groupBy(queryParams);
};