fix: align next config with next 15.5.5
This commit is contained in:
parent
0cf1892256
commit
91d0608838
8 changed files with 642 additions and 510 deletions
|
|
@ -63,9 +63,11 @@ export async function POST(request: Request) {
|
|||
const items = (report.items ?? []) as HoursByClientItem[]
|
||||
const alerts = items.filter((i) => i.contractedHoursPerMonth != null && (i.totalMs / 3600000) / (i.contractedHoursPerMonth || 1) * 100 >= threshold)
|
||||
|
||||
type ManagerUser = { email: string; name: string | null }
|
||||
|
||||
for (const item of alerts) {
|
||||
// Find managers of the company in Prisma
|
||||
const managers = await prisma.user.findMany({
|
||||
const managers: ManagerUser[] = await prisma.user.findMany({
|
||||
where: {
|
||||
tenantId,
|
||||
companyId: item.companyId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue