parent
8ccff82fd3
commit
366913c5b3
@ -17,7 +17,7 @@ export const GET = (async ({ url }) => {
|
||||
where: { reported_id: user.id },
|
||||
attributes: [
|
||||
[sequelize.fn('SUM', sequelize.col('strike_reason.weight')), 'weight'],
|
||||
'striked_at'
|
||||
[sequelize.fn('MAX', sequelize.col('striked_at')), 'striked_at']
|
||||
],
|
||||
include: { model: StrikeReason, as: 'strike_reason' }
|
||||
})) as { weight: number | null; striked_at: Date | null } | null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user