mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
🐛 Remove redundant error handling in getLastHourResults function
This commit is contained in:
parent
f50674cc73
commit
1baaf73c9e
@ -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);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user