emilsoftware-utilities 1.3.131 → 1.3.133
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.
|
@@ -219,10 +219,7 @@ let AllegatiService = class AllegatiService {
|
|
|
219
219
|
throw new common_1.NotFoundException(`Allegato con ID ${id} non trovato`);
|
|
220
220
|
}
|
|
221
221
|
const query = `DELETE FROM ALLEGATI WHERE IDXALL = ?`;
|
|
222
|
-
|
|
223
|
-
if (!result) {
|
|
224
|
-
throw new common_1.InternalServerErrorException('Errore durante la cancellazione del file');
|
|
225
|
-
}
|
|
222
|
+
yield Orm_1.Orm.execute(this.allegatiOptions.databaseOptions, query, [id]);
|
|
226
223
|
}
|
|
227
224
|
catch (error) {
|
|
228
225
|
console.error('[AllegatiService] deleteFile - Errore:', error);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { DatabaseUpdater } from "./DatabaseUpdater";
|
|
2
|
+
import { ExecutionTimeLogger } from "./ExecutionTimeLogger";
|
|
3
|
+
import { LogLevels, Logger } from "./Logger";
|
|
4
|
+
import { Orm } from "./Orm";
|
|
5
|
+
import { DateUtilities, RestUtilities, DatabaseUtilities, StatusCode } from "./Utilities";
|
|
6
|
+
import { autobind } from "./autobind";
|
|
7
|
+
import { DocumentGenerator } from "./ContractGenerator";
|
|
1
8
|
export * from "./Orm";
|
|
2
9
|
export * from "./Utilities";
|
|
3
10
|
export * from "./Logger";
|
|
@@ -8,6 +15,8 @@ export * from "./ContractGenerator";
|
|
|
8
15
|
export * from "./DatabaseUpdater";
|
|
9
16
|
export * from "./accessi-module";
|
|
10
17
|
export * from "./allegati-module";
|
|
18
|
+
export * from "es-node-firebird";
|
|
19
|
+
export { autobind, ExecutionTimeLogger, Logger, LogLevels, Orm, DateUtilities, RestUtilities, DatabaseUtilities, DatabaseUpdater, StatusCode, DocumentGenerator };
|
|
11
20
|
export * from "./UnifiedModule";
|
|
12
21
|
export * from "./initializeUnifiedModule";
|
|
13
22
|
export * from "./swagger/SwaggerConfig";
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.DocumentGenerator = exports.StatusCode = exports.DatabaseUpdater = exports.DatabaseUtilities = exports.RestUtilities = exports.DateUtilities = exports.Orm = exports.LogLevels = exports.Logger = exports.ExecutionTimeLogger = exports.autobind = void 0;
|
|
18
|
+
const DatabaseUpdater_1 = require("./DatabaseUpdater");
|
|
19
|
+
Object.defineProperty(exports, "DatabaseUpdater", { enumerable: true, get: function () { return DatabaseUpdater_1.DatabaseUpdater; } });
|
|
20
|
+
const ExecutionTimeLogger_1 = require("./ExecutionTimeLogger");
|
|
21
|
+
Object.defineProperty(exports, "ExecutionTimeLogger", { enumerable: true, get: function () { return ExecutionTimeLogger_1.ExecutionTimeLogger; } });
|
|
22
|
+
const Logger_1 = require("./Logger");
|
|
23
|
+
Object.defineProperty(exports, "LogLevels", { enumerable: true, get: function () { return Logger_1.LogLevels; } });
|
|
24
|
+
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return Logger_1.Logger; } });
|
|
25
|
+
const Orm_1 = require("./Orm");
|
|
26
|
+
Object.defineProperty(exports, "Orm", { enumerable: true, get: function () { return Orm_1.Orm; } });
|
|
27
|
+
const Utilities_1 = require("./Utilities");
|
|
28
|
+
Object.defineProperty(exports, "DateUtilities", { enumerable: true, get: function () { return Utilities_1.DateUtilities; } });
|
|
29
|
+
Object.defineProperty(exports, "RestUtilities", { enumerable: true, get: function () { return Utilities_1.RestUtilities; } });
|
|
30
|
+
Object.defineProperty(exports, "DatabaseUtilities", { enumerable: true, get: function () { return Utilities_1.DatabaseUtilities; } });
|
|
31
|
+
Object.defineProperty(exports, "StatusCode", { enumerable: true, get: function () { return Utilities_1.StatusCode; } });
|
|
32
|
+
const autobind_1 = require("./autobind");
|
|
33
|
+
Object.defineProperty(exports, "autobind", { enumerable: true, get: function () { return autobind_1.autobind; } });
|
|
34
|
+
const ContractGenerator_1 = require("./ContractGenerator");
|
|
35
|
+
Object.defineProperty(exports, "DocumentGenerator", { enumerable: true, get: function () { return ContractGenerator_1.DocumentGenerator; } });
|
|
17
36
|
__exportStar(require("./Orm"), exports);
|
|
18
37
|
__exportStar(require("./Utilities"), exports);
|
|
19
38
|
__exportStar(require("./Logger"), exports);
|
|
@@ -24,6 +43,7 @@ __exportStar(require("./ContractGenerator"), exports);
|
|
|
24
43
|
__exportStar(require("./DatabaseUpdater"), exports);
|
|
25
44
|
__exportStar(require("./accessi-module"), exports);
|
|
26
45
|
__exportStar(require("./allegati-module"), exports);
|
|
46
|
+
__exportStar(require("es-node-firebird"), exports);
|
|
27
47
|
// Unified module exports
|
|
28
48
|
__exportStar(require("./UnifiedModule"), exports);
|
|
29
49
|
__exportStar(require("./initializeUnifiedModule"), exports);
|