cleanup
This commit is contained in:
parent
9f919f2daf
commit
1b886fa467
@ -32,8 +32,6 @@ export class SubmissionStartMutation {
|
|||||||
throw new Error('invalid form')
|
throw new Error('invalid form')
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('user', user)
|
|
||||||
|
|
||||||
const submission = await this.startService.start(form, input, user, ipAddr)
|
const submission = await this.startService.start(form, input, user, ipAddr)
|
||||||
|
|
||||||
cache.add(cache.getCacheKey(SubmissionEntity.name, submission.id), submission)
|
cache.add(cache.getCacheKey(SubmissionEntity.name, submission.id), submission)
|
||||||
|
|||||||
@ -27,7 +27,11 @@ export class SubmissionHookService {
|
|||||||
this.format(submission, hook.format)
|
this.format(submission, hook.format)
|
||||||
))
|
))
|
||||||
|
|
||||||
console.log('sent hook', response.data)
|
this.logger.info({
|
||||||
|
submission: submission.id,
|
||||||
|
form: submission.formId,
|
||||||
|
webhook: hook.url,
|
||||||
|
}, 'sent hook')
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logger.error({
|
this.logger.error({
|
||||||
submission: submission.id,
|
submission: submission.id,
|
||||||
|
|||||||
@ -54,7 +54,12 @@ export class SubmissionNotificationService {
|
|||||||
html,
|
html,
|
||||||
text: htmlToText.htmlToText(html),
|
text: htmlToText.htmlToText(html),
|
||||||
})
|
})
|
||||||
console.log('sent notification to', to)
|
|
||||||
|
this.logger.info({
|
||||||
|
form: submission.formId,
|
||||||
|
submission: submission.id,
|
||||||
|
notification: notification.id,
|
||||||
|
}, 'sent notification')
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logger.error({
|
this.logger.error({
|
||||||
form: submission.formId,
|
form: submission.formId,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user