This commit is contained in:
parent
29d9765a81
commit
3762872e01
@ -157,7 +157,7 @@ export const PATCH = (async ({ request, cookies }) => {
|
|||||||
await report.save();
|
await report.save();
|
||||||
|
|
||||||
if (webhookTriggerUsers.length > 0 && data.status == 'reviewed' && env.REPORTED_WEBHOOK) {
|
if (webhookTriggerUsers.length > 0 && data.status == 'reviewed' && env.REPORTED_WEBHOOK) {
|
||||||
for (const webhookTriggerUser in webhookTriggerUsers) {
|
for (const webhookTriggerUser of webhookTriggerUsers) {
|
||||||
// no `await` to avoid blocking
|
// no `await` to avoid blocking
|
||||||
webhookUserReported(env.REPORTED_WEBHOOK, webhookTriggerUser);
|
webhookUserReported(env.REPORTED_WEBHOOK, webhookTriggerUser);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user