@crowdin/app-project-module 1.2.0 → 1.2.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.
- package/out/storage/sqlite.js +2 -1
- package/package.json +1 -1
package/out/storage/sqlite.js
CHANGED
|
@@ -624,13 +624,14 @@ class SQLiteStorage {
|
|
|
624
624
|
});
|
|
625
625
|
}
|
|
626
626
|
saveTranslationCache(params) {
|
|
627
|
+
var _a;
|
|
627
628
|
return __awaiter(this, void 0, void 0, function* () {
|
|
628
629
|
this.db.prepare(`
|
|
629
630
|
INSERT INTO translation_file_cache
|
|
630
631
|
(integration_id, crowdin_id, file_id, language_id, etag)
|
|
631
632
|
VALUES
|
|
632
633
|
(@integrationId, @crowdinId, @fileId, @languageId, @etag)
|
|
633
|
-
`).run(params);
|
|
634
|
+
`).run(Object.assign(Object.assign({}, params), { etag: (_a = params.etag) !== null && _a !== void 0 ? _a : null }));
|
|
634
635
|
});
|
|
635
636
|
}
|
|
636
637
|
getFileTranslationCache(params) {
|
package/package.json
CHANGED