Skip to content

Commit 19d06d1

Browse files
authored
Fix saving records with mongo (#1203)
2 parents 3440698 + e4b0f40 commit 19d06d1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## Unreleased [patch]
6+
7+
> Development of this release was supported by the [French Ministry for Foreign Affairs](https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/diplomatie-numerique/) through its ministerial [State Startups incubator](https://beta.gouv.fr/startups/open-terms-archive.html) under the aegis of the Ambassador for Digital Affairs.
8+
9+
### Fixed
10+
11+
- Fix saving records whose content is not yet loaded when using MongoDB storage.
12+
513
## 9.2.1 - 2025-11-19
614

715
_Full changeset and discussions: [#1206](https://github.com/OpenTermsArchive/engine/pull/1206)._

src/archivist/recorder/repositories/mongo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default class MongoRepository extends RepositoryInterface {
135135

136136
async #toPersistence(record) {
137137
if (record.content === undefined || record.content === null) {
138-
await this.repository.loadRecordContent(record);
138+
await this.loadRecordContent(record);
139139
}
140140

141141
return DataMapper.toPersistence(record);

0 commit comments

Comments
 (0)