@crowdin/app-project-module 0.58.2 → 0.58.3
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.
|
@@ -205,7 +205,7 @@ function filesCron({ config, integration, period, }) {
|
|
|
205
205
|
onlyApproved,
|
|
206
206
|
onlyTranslated,
|
|
207
207
|
});
|
|
208
|
-
if (Object.keys(filesToProcess).length
|
|
208
|
+
if (Object.keys(filesToProcess).length <= 0) {
|
|
209
209
|
continue;
|
|
210
210
|
}
|
|
211
211
|
(0, logger_1.log)(`Executing updateIntegration task for files cron job with period [${period}] for project ${projectId}.Files ${Object.keys(filesToProcess).length}`);
|
|
@@ -264,7 +264,7 @@ function filesCron({ config, integration, period, }) {
|
|
|
264
264
|
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
265
265
|
node_type: file.nodeType || file.node_type }, (file.type ? { type: file.type } : {}))));
|
|
266
266
|
const intFiles = allIntFiles.filter((file) => 'type' in file);
|
|
267
|
-
if (intFiles.length
|
|
267
|
+
if (intFiles.length <= 0) {
|
|
268
268
|
continue;
|
|
269
269
|
}
|
|
270
270
|
(0, logger_1.log)(`Executing updateCrowdin task for files cron job with period [${period}] for project ${projectId}. Files ${intFiles.length}`);
|
package/package.json
CHANGED