diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 283b9b4..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/app/http/controllers/Home.controller.ts b/src/app/http/controllers/Home.controller.ts index 50f08c3..a2b3085 100644 --- a/src/app/http/controllers/Home.controller.ts +++ b/src/app/http/controllers/Home.controller.ts @@ -10,7 +10,7 @@ import { file, Application, make, - Valid, + Valid, Logging, } from '@extollo/lib' import {WorkItem} from '../../models/WorkItem.model' import {FeedPost} from '../../models/FeedPost.model' @@ -32,6 +32,9 @@ export class Home extends Controller { @Inject() protected readonly gotify!: Gotify + @Inject() + protected readonly logging!: Logging + public async welcome(feedPosts: Collection) { const workItems = await this.getWorkItems() @@ -118,13 +121,14 @@ export class Home extends Controller { this.gotify.send({ app: this.config.get('gotify.app'), title: `Contact form submission from ${data.name}`, + priority: 5, message: [ `From: ${data.name}`, `E-mail: ${data.email}`, 'Message:', data.message, ].join('\n'), - }) + }).then(x => this.logging.debug(x)) return view('message', { title: 'Message Sent',