From 366dfd16f9853594ef987439a466da3ff3413604 Mon Sep 17 00:00:00 2001 From: Surmon Date: Mon, 20 May 2024 13:27:47 +0800 Subject: [PATCH] feat: v4.9.1 --- package.json | 2 +- src/modules/auth/auth.controller.ts | 4 ++-- src/modules/expansion/expansion.service.dbbackup.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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))