@live-change/backup-service 0.9.7 → 0.9.9

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.
Files changed (2) hide show
  1. package/clear.js +2 -2
  2. package/package.json +4 -4
package/clear.js CHANGED
@@ -40,7 +40,7 @@ export async function getLastTriggerTimestamp() {
40
40
  const lastTriggers = await app.dao.get(
41
41
  ['database', 'indexRange', app.databaseName, 'triggers_byTimestamp', { reverse: true, limit: 1 }])
42
42
  const lastTrigger = lastTriggers[0]?.id
43
- return lastTrigger ?? null
43
+ return lastTrigger ? lastTrigger.split('_')[0] : null
44
44
  }
45
45
 
46
46
  export async function getLastCommandTimestamp() {
@@ -50,7 +50,7 @@ export async function getLastCommandTimestamp() {
50
50
  const lastCommands = await app.dao.get(
51
51
  ['database', 'indexRange', app.databaseName, 'commands_byTimestamp', { reverse: true, limit: 1 }])
52
52
  const lastCommand = lastCommands[0]?.id
53
- return lastCommand ?? null
53
+ return lastCommand ? lastCommand.split('_')[0] : null
54
54
  }
55
55
 
56
56
  const clearQuery = `${async (input, output, { tableName, bucket, before }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/backup-service",
3
- "version": "0.9.7",
3
+ "version": "0.9.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,14 +9,14 @@
9
9
  "author": "Michał Łaszczewski <michal@emikse.com>",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
- "@live-change/db-client": "^0.9.7",
13
- "@live-change/framework": "^0.9.7",
12
+ "@live-change/db-client": "^0.9.9",
13
+ "@live-change/framework": "^0.9.9",
14
14
  "express": "^4.18.2",
15
15
  "express-basic-auth": "^1.2.1",
16
16
  "fs-extra": "^11.1.1",
17
17
  "p-queue": "^8.0.1",
18
18
  "progress-stream": "^2.0.0"
19
19
  },
20
- "gitHead": "f936468bf39ea3c5b07ce14666f4b3a4a4a9287d",
20
+ "gitHead": "150ef8008399a3b6a160985a4a8d4e91255c0e99",
21
21
  "type": "module"
22
22
  }