mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix deprecation warning: use slice instead of substr
This commit is contained in:
parent
31c6f77a78
commit
5e41b59fe7
@ -16,7 +16,7 @@ const version = {
|
|||||||
APP_VERSION: pkg.version,
|
APP_VERSION: pkg.version,
|
||||||
BUILD_COMMIT: process.env.BUILD_COMMIT || null,
|
BUILD_COMMIT: process.env.BUILD_COMMIT || null,
|
||||||
// self reference of `version.BUILD_COMMIT` is not possible at this point, hence the duplicate code
|
// self reference of `version.BUILD_COMMIT` is not possible at this point, hence the duplicate code
|
||||||
BUILD_COMMIT_SHORT: (process.env.BUILD_COMMIT || '0000000').substr(0, 7),
|
BUILD_COMMIT_SHORT: (process.env.BUILD_COMMIT || '0000000').slice(0, 7),
|
||||||
PORT: process.env.PORT || 8080,
|
PORT: process.env.PORT || 8080,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ const version = {
|
|||||||
APP_VERSION: pkg.version,
|
APP_VERSION: pkg.version,
|
||||||
BUILD_COMMIT: process.env.BUILD_COMMIT || null,
|
BUILD_COMMIT: process.env.BUILD_COMMIT || null,
|
||||||
// self reference of `version.BUILD_COMMIT` is not possible at this point, hence the duplicate code
|
// self reference of `version.BUILD_COMMIT` is not possible at this point, hence the duplicate code
|
||||||
BUILD_COMMIT_SHORT: (process.env.BUILD_COMMIT || '0000000').substr(0, 7),
|
BUILD_COMMIT_SHORT: (process.env.BUILD_COMMIT || '0000000').slice(0, 7),
|
||||||
}
|
}
|
||||||
|
|
||||||
const environment = {
|
const environment = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user