Skip to content

Commit

Permalink
feat: v4.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed May 20, 2024
1 parent 9e0fec1 commit 366dfd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/modules/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/expansion/expansion.service.dbbackup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 366dfd1

Please sign in to comment.