[CORl-640] User Registration Race (#2583)

*  fix: fixes user registration endpoints

- fixes #2579

* feat: cleanup from review

- Added seperate create function
- Moved some validation around

* fix: linting
This commit is contained in:
Wyatt Johnson
2019-09-23 21:11:16 +00:00
committed by GitHub
parent 43844bca18
commit fe2d78f1f7
10 changed files with 179 additions and 114 deletions
+4 -1
View File
@@ -70,7 +70,10 @@ export default class Task<T, U = any> {
*/
public process() {
this.queue.process(async (job: Job<T>) => {
const log = this.log.child({ jobID: job.id }, true);
const log = this.log.child(
{ jobID: job.id, attemptsMade: job.attemptsMade },
true
);
log.trace("processing job from queue");