diff --git a/package.json b/package.json index a42b6cac..9c3f79f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodepress", - "version": "4.9.0", + "version": "4.9.1", "description": "RESTful API service for Surmon.me blog", "author": "Surmon", "license": "MIT", diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index 14647f9a..7fba88f7 100755 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -33,9 +33,9 @@ export class AuthController { const token = await this.authService.adminLogin(body.password) if (ip) { this.ipService.queryLocation(ip).then((location) => { - const subject = `App has a new login activity.` + const subject = `App has a new login activity` const locationText = location ? [location.country, location.region, location.city].join(' ยท ') : 'unknow' - const content = `${subject}, IP: ${ip}, location: ${locationText}` + const content = `${subject}. IP: ${ip}, location: ${locationText}` this.emailService.sendMailAs(APP.NAME, { to: APP.ADMIN_EMAIL, subject, diff --git a/src/modules/expansion/expansion.service.dbbackup.ts b/src/modules/expansion/expansion.service.dbbackup.ts index 8341dac0..52c01e7f 100755 --- a/src/modules/expansion/expansion.service.dbbackup.ts +++ b/src/modules/expansion/expansion.service.dbbackup.ts @@ -46,7 +46,7 @@ export class DBBackupService { try { const result = await this.doBackup() const json = { ...result, size: (result.size / 1024).toFixed(2) + 'kb' } - this.mailToAdmin('Database backup succeeded.', JSON.stringify(json, null, 2), true) + this.mailToAdmin('Database backup succeeded', JSON.stringify(json, null, 2), true) return result } catch (error) { this.mailToAdmin('Database backup failed!', String(error))