From 5460085cfa9d81be5647bcc46945f8f2969af8db Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Fri, 8 Dec 2023 14:37:00 +0100 Subject: [PATCH] added hostName --- src/models/ReserveResultPojo.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/models/ReserveResultPojo.js b/src/models/ReserveResultPojo.js index 855a81b..b3a2f58 100644 --- a/src/models/ReserveResultPojo.js +++ b/src/models/ReserveResultPojo.js @@ -1,4 +1,6 @@ const PublishType = require("./PublishType"); +const {hostname} = require("os"); +const hostName = hostname(); class ReserveResultPojo { @@ -13,6 +15,7 @@ class ReserveResultPojo { this.email = mail; this.type = type; this.source_from = "" + this.hostName = hostName this.created_at = new Date().toLocaleString() } @@ -27,7 +30,8 @@ class ReserveResultPojo { url: this.url, store_type: this.storeType, source_from: this.source_from, - created_at: this.created_at + created_at: this.created_at, + hostName: this.hostName } }