server-socket-framework-jps
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -54,10 +54,10 @@ "use strict"; | ||
if (config.isDailyJob) { | ||
const now = parseInt((0, moment_1.default)().format('YYYYMMDDHHmm')); | ||
nextExecuteTime = parseInt((0, moment_1.default)(`${(0, moment_1.default)().format('YYYYMMDD')}${config.executeDailyAtTime}`, 'YYYYMMDDHHmm').format('YYYYMMDDHHmm')); | ||
const now = parseFloat((0, moment_1.default)().format('YYYYMMDDHHmm')); | ||
nextExecuteTime = parseFloat((0, moment_1.default)(`${(0, moment_1.default)().format('YYYYMMDD')}${config.executeDailyAtTime}`, 'YYYYMMDDHHmm').format('YYYYMMDDHHmm')); | ||
if (nextExecuteTime < now) { | ||
nextExecuteTime = parseInt((0, moment_1.default)(`${(0, moment_1.default)().add(1, 'day').format('YYYYMMDD')}${config.executeDailyAtTime}`, 'YYYYMMDDHHmm').format('YYYYMMDDHHmm')); | ||
nextExecuteTime = parseFloat((0, moment_1.default)(`${(0, moment_1.default)().add(1, 'day').format('YYYYMMDD')}${config.executeDailyAtTime}`, 'YYYYMMDDHHmm').format('YYYYMMDDHHmm')); | ||
} | ||
} | ||
else { | ||
nextExecuteTime = parseInt((0, moment_1.default)().add(config.executeEveryMinutes, 'minutes').format('YYYYMMDDHHmm')); | ||
nextExecuteTime = parseFloat((0, moment_1.default)().add(config.executeEveryMinutes, 'minutes').format('YYYYMMDDHHmm')); | ||
} | ||
@@ -64,0 +64,0 @@ return nextExecuteTime; |
{ | ||
"name": "server-socket-framework-jps", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A simple socket framework for persistent chat rooms and data messages", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73315