Skip to content

Commit 66aa6aa

Browse files
committed
fix: correct mathjs and openrad env key
1 parent 7b49b26 commit 66aa6aa

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

packages/krawler-openradiation/jobfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { hooks } from '@kalisio/krawler'
55

66
const DB_URL = process.env.DB_URL || 'mongodb://127.0.0.1:27017/openradiation'
77
const TTL = +process.env.TTL || (7 * 24 * 60 * 60) // duration in seconds
8-
const KEY = process.env.KEY
8+
const KEY = process.env.OPENRADIATION_KEY
99
const COLLECTION = process.env.COLLECTION || 'openradiation'
1010
// For testing purpose we can set a fixed date, take care that empty string might be interpreted wrongly
1111
const DATE_OF_CREATION = (process.env.DATE_OF_CREATION ? process.env.DATE_OF_CREATION : undefined)

packages/krawler/src/utils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ import { Duplex } from 'stream'
99
const { getItems, replaceItems } = common
1010

1111
const debug = makeDebug('krawler:utils')
12-
// Add knot unit not defined by default
13-
math.createUnit('knot', { definition: '0.514444 m/s', aliases: ['knots', 'kt', 'kts'] })
12+
math.createUnit('knot', { definition: '0.514444 m/s', aliases: ['knots', 'kt', 'kts'] }, { override: true })
1413
// This ensure moment objects are correctly serialized in MongoDB
1514
Object.getPrototypeOf(moment()).toBSON = function () {
1615
return this.toDate()

0 commit comments

Comments
 (0)