repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
IdTagsCache.ts
diff --git
a/src/charging-station/IdTagsCache.ts
b/src/charging-station/IdTagsCache.ts
index d1ad32d2bbffe63aa4d091fe11fecce1af0db165..da4b38bfce79de421343e16f90dd2b6a17e85c6b 100644
(file)
--- a/
src/charging-station/IdTagsCache.ts
+++ b/
src/charging-station/IdTagsCache.ts
@@
-1,16
+1,16
@@
import { type FSWatcher, readFileSync } from 'node:fs'
import { type FSWatcher, readFileSync } from 'node:fs'
-import type { ChargingStation } from './ChargingStation.js'
-import { getIdTagsFile } from './Helpers.js'
import { FileType, IdTagDistribution } from '../types/index.js'
import {
handleFileException,
isNotEmptyString,
import { FileType, IdTagDistribution } from '../types/index.js'
import {
handleFileException,
isNotEmptyString,
- logPrefix,
logger,
logger,
+ logPrefix,
secureRandom,
watchJsonFile
} from '../utils/index.js'
secureRandom,
watchJsonFile
} from '../utils/index.js'
+import type { ChargingStation } from './ChargingStation.js'
+import { getIdTagsFile } from './Helpers.js'
interface IdTagsCacheValueType {
idTags: string[]
interface IdTagsCacheValueType {
idTags: string[]
@@
-143,8
+143,7
@@
export class IdTagsCache {
logger.debug(
`${this.logPrefix(file)} ${FileType.Authorization} file have changed, reload`
)
logger.debug(
`${this.logPrefix(file)} ${FileType.Authorization} file have changed, reload`
)
- this.deleteIdTagsCache(file)
- this.deleteIdTagsCacheIndexes(file)
+ this.deleteIdTags(file)
} catch (error) {
handleFileException(
file,
} catch (error) {
handleFileException(
file,