[next] Comment Moderation Actions (#2068)

* fix: renamed snake case to camel case

* fix: changed case for mutators

* fix: renamed all snake case to camel case for db

* feat: added support for comment revisions + split comment actions

* fix: updated tests

* feat: implemented CommentModerationAction

* fix: fixed case issues

* feat: enabled WeakMap for wordList processsing

* chore: npm audit
This commit is contained in:
Wyatt Johnson
2018-11-21 17:42:47 +01:00
committed by Kiwi
parent 13147c4ba4
commit 21e1a5cbef
66 changed files with 2323 additions and 2224 deletions
+4 -4
View File
@@ -33,7 +33,7 @@ export default class Task<T, U = any> {
});
logger.trace(
{ job_id: job.id, job_name: this.options.jobName },
{ jobID: job.id, jobName: this.options.jobName },
"added job to queue"
);
return job;
@@ -42,21 +42,21 @@ export default class Task<T, U = any> {
private setupAndAttachProcessor() {
this.queue.process(async (job: Job<T>) => {
logger.trace(
{ job_id: job.id, job_name: this.options.jobName },
{ jobID: job.id, jobName: this.options.jobName },
"processing job from queue"
);
// Send the job off to the job processor to be handled.
const promise: U = await this.options.jobProcessor(job);
logger.trace(
{ job_id: job.id, job_name: this.options.jobName },
{ jobID: job.id, jobName: this.options.jobName },
"processing completed"
);
return promise;
});
logger.trace(
{ job_name: this.options.jobName },
{ jobName: this.options.jobName },
"registered processor for job type"
);
}