sumba 2.46.1 → 2.47.0

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/index.js CHANGED
@@ -98,7 +98,7 @@ async function factory (pkgName) {
98
98
  */
99
99
  start = async () => {
100
100
  await this.populateRouteGuards()
101
- const { setInterval } = this.app.lib
101
+ const { startInterval } = this.app.lib
102
102
  if (!this.config.multiSite.enabled) {
103
103
  this.config.xSiteAdmins = []
104
104
  return
@@ -108,7 +108,7 @@ async function factory (pkgName) {
108
108
  const user = await getModel('SumbaUser').findOneRecord({ query: { username: 'admin', siteId: site.id + '' } }, { noMagic: true })
109
109
  this.config.xSiteAdmins.push(`${site.alias}:${user.username}`)
110
110
  }
111
- await setInterval(this.execDownload, this.config.queue.intvDur, { lockFile: 'download', scope: this })
111
+ startInterval(this.execDownload, this.config.queue.intvDur, 'download')
112
112
  }
113
113
 
114
114
  /**
@@ -615,6 +615,7 @@ async function factory (pkgName) {
615
615
  const { size } = fs.statSync(rec.jobQueue.result.file)
616
616
  await model.updateRecord(rec.id, { size, status: 'COMPLETE', jobQueue: rec.jobQueue })
617
617
  } catch (err) {
618
+ console.log(err)
618
619
  rec.jobQueue.error = err.message
619
620
  await model.updateRecord(rec.id, { status: 'FAIL', jobQueue: rec.jobQueue })
620
621
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.46.1",
3
+ "version": "2.47.0",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Changes
2
2
 
3
- ## 2026-08-14
3
+ ## 2026-08-24
4
4
 
5
- - [2.46.1] Bug fix in `rebuildFilter()`
5
+ - [2.47.0] Now use the new `app.lib.startInterval()`
6
+
7
+ ## 2026-08-20
8
+
9
+ - [2.46.2] Bug fix in `execDownload()`
6
10
 
7
11
  ## 2026-08-13
8
12