cleanup
This commit is contained in:
parent
9f919f2daf
commit
1b886fa467
@ -32,8 +32,6 @@ export class SubmissionStartMutation {
|
||||
throw new Error('invalid form')
|
||||
}
|
||||
|
||||
console.log('user', user)
|
||||
|
||||
const submission = await this.startService.start(form, input, user, ipAddr)
|
||||
|
||||
cache.add(cache.getCacheKey(SubmissionEntity.name, submission.id), submission)
|
||||
|
||||
@ -27,7 +27,11 @@ export class SubmissionHookService {
|
||||
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) {
|
||||
this.logger.error({
|
||||
submission: submission.id,
|
||||
|
||||
@ -54,7 +54,12 @@ export class SubmissionNotificationService {
|
||||
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) {
|
||||
this.logger.error({
|
||||
form: submission.formId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user