daveappserver 0.6.32 → 0.6.34
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 +32 -2
- package/package.json +1 -1
package/appserver.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var myVersion = "0.6.
|
|
1
|
+
var myVersion = "0.6.34", myProductName = "daveAppServer";
|
|
2
2
|
|
|
3
3
|
exports.start = startup;
|
|
4
4
|
exports.notifySocketSubscribers = notifySocketSubscribers;
|
|
@@ -1052,7 +1052,11 @@ function cleanFileStats (stats) { //4/19/21 by DW
|
|
|
1052
1052
|
callback ({message});
|
|
1053
1053
|
}
|
|
1054
1054
|
else {
|
|
1055
|
-
|
|
1055
|
+
var theConfirmation = result [0];
|
|
1056
|
+
if (theConfirmation.urlRedirect == null) {
|
|
1057
|
+
theConfirmation.urlRedirect = undefined;
|
|
1058
|
+
}
|
|
1059
|
+
callback (undefined, theConfirmation);
|
|
1056
1060
|
}
|
|
1057
1061
|
}
|
|
1058
1062
|
});
|
|
@@ -1073,6 +1077,19 @@ function cleanFileStats (stats) { //4/19/21 by DW
|
|
|
1073
1077
|
}
|
|
1074
1078
|
function deletePendingConfirmation (item, callback) { //8/14/23 by DW
|
|
1075
1079
|
if (config.flUseDatabaseForConfirmations) {
|
|
1080
|
+
const sqltext = "update pendingConfirmations set flDeleted = true where magicString = " + encode (item.magicString) + ";"
|
|
1081
|
+
davesql.runSqltext (sqltext, function (err, result) {
|
|
1082
|
+
if (err) {
|
|
1083
|
+
if (callback !== undefined) {
|
|
1084
|
+
callback (err);
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
else {
|
|
1088
|
+
if (callback !== undefined) {
|
|
1089
|
+
callback (undefined);
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
});
|
|
1076
1093
|
}
|
|
1077
1094
|
else {
|
|
1078
1095
|
item.flDeleted = true;
|
|
@@ -1080,6 +1097,19 @@ function cleanFileStats (stats) { //4/19/21 by DW
|
|
|
1080
1097
|
}
|
|
1081
1098
|
function checkPendingConfirmations (callback) { //8/14/23 by DW
|
|
1082
1099
|
if (config.flUseDatabaseForConfirmations) {
|
|
1100
|
+
const sqltext = "delete from pendingConfirmations where flDeleted = true or whenCreated < now() - interval 1 hour;";
|
|
1101
|
+
davesql.runSqltext (sqltext, function (err, result) {
|
|
1102
|
+
if (err) {
|
|
1103
|
+
if (callback !== undefined) {
|
|
1104
|
+
callback (err);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
else {
|
|
1108
|
+
if (callback !== undefined) {
|
|
1109
|
+
callback (undefined);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
});
|
|
1083
1113
|
}
|
|
1084
1114
|
else {
|
|
1085
1115
|
var flChanged = false;
|