@flowfuse/file-server 2.14.1 → 2.14.2-c46ae11-202503051615.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/forge/config.js
CHANGED
|
@@ -81,7 +81,7 @@ module.exports = {
|
|
|
81
81
|
if (process.env.NODE_ENV === 'development') {
|
|
82
82
|
app.log.info('Development mode')
|
|
83
83
|
}
|
|
84
|
-
app.log.info(`FlowFuse File Storage v${config.
|
|
84
|
+
app.log.info(`FlowFuse File Storage v${config.version}`)
|
|
85
85
|
app.log.info(`FlowFuse File Storage running with NodeJS ${process.version}`)
|
|
86
86
|
app.log.info(`FlowFuse File Storage HOME Directory: ${process.env.FLOWFORGE_HOME}`)
|
|
87
87
|
if (!opts.config) {
|
|
@@ -150,7 +150,7 @@ module.exports = {
|
|
|
150
150
|
}
|
|
151
151
|
// only calculate the current size if we are going to need it
|
|
152
152
|
if (changeSize >= 0) {
|
|
153
|
-
const currentSize = await this.quota(instanceId)
|
|
153
|
+
const currentSize = Number.parseInt(await this.quota(instanceId))
|
|
154
154
|
if (currentSize + changeSize > quotaLimit) {
|
|
155
155
|
app.log.warn(`context quota check fail: ${instanceId}/${scope} current=${currentSize} delta=${changeSize} limit=${quotaLimit} requested=${currentSize + changeSize}`)
|
|
156
156
|
const err = new Error('Over Quota')
|