itlab-internal-services 2.14.0 → 2.14.1
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.
|
@@ -13,7 +13,7 @@ const class_validator_1 = require("class-validator");
|
|
|
13
13
|
function ThumbnailMaxHeight(options = {}) {
|
|
14
14
|
return (0, common_1.applyDecorators)(
|
|
15
15
|
/** ApiProperty with the given options */
|
|
16
|
-
(0, swagger_1.ApiProperty)(Object.assign({ description: 'Die maximale Höhe
|
|
16
|
+
(0, swagger_1.ApiProperty)(Object.assign({ description: 'Die maximale Höhe in Pixel (>= 100)', example: 200, minimum: 100 }, options)),
|
|
17
17
|
/** The property is optional */
|
|
18
18
|
(0, class_validator_1.IsOptional)(),
|
|
19
19
|
/** If set, the value must be at least 100 */
|
|
@@ -13,7 +13,7 @@ const class_validator_1 = require("class-validator");
|
|
|
13
13
|
function ThumbnailMaxWidth(options = {}) {
|
|
14
14
|
return (0, common_1.applyDecorators)(
|
|
15
15
|
/** ApiProperty with the given options */
|
|
16
|
-
(0, swagger_1.ApiProperty)(Object.assign({ description: 'Die maximale Breite
|
|
16
|
+
(0, swagger_1.ApiProperty)(Object.assign({ description: 'Die maximale Breite in Pixel (>= 100)', example: 200, minimum: 100 }, options)),
|
|
17
17
|
/** The property is optional */
|
|
18
18
|
(0, class_validator_1.IsOptional)(),
|
|
19
19
|
/** If set, the value must be at least 100 */
|
|
@@ -71,7 +71,7 @@ let CacheService = CacheService_1 = class CacheService {
|
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
const { user, host, port } = this.options;
|
|
73
73
|
// Validate required Redis connection options
|
|
74
|
-
if (!(0, class_validator_1.
|
|
74
|
+
if (!(0, class_validator_1.isDefined)(user) || !(0, class_validator_1.isDefined)(host) || !(0, class_validator_1.isDefined)(port)) {
|
|
75
75
|
this.logger.warn('Redis configuration is incomplete. Skipping cache store setup.');
|
|
76
76
|
return;
|
|
77
77
|
}
|