Skip to content

Commit

Permalink
Minor performance tweaks (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushchris authored Apr 13, 2024
1 parent 16afbb1 commit 572d8f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions apps/platform/src/providers/email/EmailChannel.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import App from '../../app'
import { Variables, Wrap } from '../../render'
import { EmailTemplate } from '../../render/Template'
import { encodeHashid } from '../../utilities'
import { encodeHashid, pick } from '../../utilities'
import { Email } from './Email'
import EmailProvider from './EmailProvider'

Expand Down Expand Up @@ -37,7 +37,16 @@ export default class EmailChannel {
}
const result = await this.provider.send(email)
return {
...result,
...pick(result, [
'messageId',
'messageSize',
'messageTime',
'envelope',
'accepted',
'rejected',
'pending',
'response',
]),
message: App.main.env.config.logCompiledMessage ? compiled : undefined,
}
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
mysql:
image: mysql:8.0.27
image: mysql:8.0.36
platform: linux/x86_64
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
Expand Down

0 comments on commit 572d8f7

Please sign in to comment.