refactor
This commit is contained in:
parent
6f5282058f
commit
22b56ac65c
4 changed files with 5 additions and 14 deletions
|
|
@ -70,7 +70,7 @@ export default define(meta, paramDef, async (ps, me) => {
|
|||
}).then(x => AbuseUserReports.findOneOrFail(x.identifiers[0]));
|
||||
|
||||
// Publish event to moderators
|
||||
setTimeout(async () => {
|
||||
setImmediate(async () => {
|
||||
const moderators = await Users.find({
|
||||
where: [{
|
||||
isAdmin: true,
|
||||
|
|
@ -94,5 +94,5 @@ export default define(meta, paramDef, async (ps, me) => {
|
|||
sanitizeHtml(ps.comment),
|
||||
sanitizeHtml(ps.comment));
|
||||
}
|
||||
}, 1);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue