@opentermsarchive/engine 9.2.1 → 9.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentermsarchive/engine",
3
- "version": "9.2.1",
3
+ "version": "9.2.3",
4
4
  "description": "Tracks and makes visible changes to the terms of online services",
5
5
  "homepage": "https://opentermsarchive.org",
6
6
  "bugs": {
@@ -135,7 +135,7 @@ export default class MongoRepository extends RepositoryInterface {
135
135
 
136
136
  async #toPersistence(record) {
137
137
  if (record.content === undefined || record.content === null) {
138
- await this.repository.loadRecordContent(record);
138
+ await this.loadRecordContent(record);
139
139
  }
140
140
 
141
141
  return DataMapper.toPersistence(record);
@@ -17,7 +17,7 @@ if (config.get('@opentermsarchive/engine.logger.sendMailOnError')) {
17
17
  from: config.get('@opentermsarchive/engine.logger.sendMailOnError.from'),
18
18
  host: config.get('@opentermsarchive/engine.logger.smtp.host'),
19
19
  username: config.get('@opentermsarchive/engine.logger.smtp.username'),
20
- password: process.env.SMTP_PASSWORD,
20
+ password: process.env.OTA_ENGINE_SMTP_PASSWORD,
21
21
  ssl: true,
22
22
  timeout: 30 * 1000,
23
23
  formatter: args => args[Object.getOwnPropertySymbols(args)[1]], // Returns the full error message, the same visible in the console. It is referenced in the argument object with a Symbol of which we do not have the reference but we know it is the second one.