Skip to content

Commit

Permalink
Update @balena/sbvr-types major
Browse files Browse the repository at this point in the history
Update `@balena/sbvr-types` from 6.1.1 to 7.0.1

pinejs provides an internal and external interface. The external interface returns ISODateString encoded data.
The internal interface should be consistent to the external interface, so that the pinejs api internally used also returns an ISODateString encoded data. This is solved in `sbvr-types` and is a major in the submodule and made this also a major change for pinejs itself.

balena-io-modules/sbvr-types#91

Change-type: major
Signed-off-by: Harald Fischer <[email protected]>
  • Loading branch information
fisehara committed Mar 6, 2024
1 parent 48cc8a1 commit cfbbecb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@balena/odata-parser": "^3.0.3",
"@balena/odata-to-abstract-sql": "^6.2.3",
"@balena/sbvr-parser": "^1.4.3",
"@balena/sbvr-types": "^6.1.1",
"@balena/sbvr-types": "^7.0.1",
"@types/body-parser": "^1.19.5",
"@types/compression": "^1.7.5",
"@types/cookie-parser": "^1.4.6",
Expand Down
3 changes: 2 additions & 1 deletion src/migrator/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ const $run = async (
// skip execution
if (migrationState.last_run_time) {
const durationSinceLastRun =
Date.now() - migrationState.last_run_time.getTime();
Date.now() -
new Date(migrationState.last_run_time).getTime();
const delayMs = migrationState.is_backing_off
? initMigrationState.backoffDelayMS
: initMigrationState.delayMS;
Expand Down

0 comments on commit cfbbecb

Please sign in to comment.