Skip to content

Commit a7e2838

Browse files
committed
fix it
1 parent 929ba01 commit a7e2838

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/sdk/assets/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@
882882
"info": {
883883
"title": "@libertech-fr/mailrest",
884884
"description": "An email retrieval system with a REST API built with NestJS in NodeJS",
885-
"version": "0.0.5",
885+
"version": "0.0.6",
886886
"contact": {}
887887
},
888888
"tags": [],

src/accounts/accounts.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class AccountsService extends AbstractService {
9191
const accounts = await readAccountsFile(this.cache)
9292
const account = accounts.accounts.find((a) => a.id === id)
9393
if (!account) throw new NotFoundException(`Account not found: ${id}`)
94-
if (!body.template && (!body.text || !body.html)) {
94+
if (!body.template && !body.text && !body.html) {
9595
throw new BadRequestException(`Template, text or html is required !`)
9696
}
9797
try {

0 commit comments

Comments
 (0)