daveappserver 0.6.35 → 0.6.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appserver.js +3 -3
- package/package.json +1 -1
package/appserver.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var myVersion = "0.6.
|
|
1
|
+
var myVersion = "0.6.37", myProductName = "daveAppServer";
|
|
2
2
|
|
|
3
3
|
exports.start = startup;
|
|
4
4
|
exports.notifySocketSubscribers = notifySocketSubscribers;
|
|
@@ -1077,7 +1077,7 @@ function cleanFileStats (stats) { //4/19/21 by DW
|
|
|
1077
1077
|
}
|
|
1078
1078
|
function deletePendingConfirmation (item, callback) { //8/14/23 by DW
|
|
1079
1079
|
if (config.flUseDatabaseForConfirmations) {
|
|
1080
|
-
const sqltext = "
|
|
1080
|
+
const sqltext = "delete from pendingConfirmations where magicString = " + davesql.encode (item.magicString) + ";"; //8/15/23 by DW
|
|
1081
1081
|
davesql.runSqltext (sqltext, function (err, result) {
|
|
1082
1082
|
if (err) {
|
|
1083
1083
|
if (callback !== undefined) {
|
|
@@ -1097,7 +1097,7 @@ function cleanFileStats (stats) { //4/19/21 by DW
|
|
|
1097
1097
|
}
|
|
1098
1098
|
function checkPendingConfirmations (callback) { //8/14/23 by DW
|
|
1099
1099
|
if (config.flUseDatabaseForConfirmations) {
|
|
1100
|
-
const sqltext = "delete from pendingConfirmations where
|
|
1100
|
+
const sqltext = "delete from pendingConfirmations where whenCreated < now() - interval 1 hour;";
|
|
1101
1101
|
davesql.runSqltext (sqltext, function (err, result) {
|
|
1102
1102
|
if (err) {
|
|
1103
1103
|
if (callback !== undefined) {
|