Skip to content

Commit f9a4427

Browse files
committed
cache reset deprecataed
1 parent 27ca8ff commit f9a4427

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/MWaterDataSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class MWaterDataSource extends DataSource_1.default {
104104
// Clears the local cache
105105
clearCache() {
106106
var _a;
107-
(_a = this.cache) === null || _a === void 0 ? void 0 : _a.reset();
107+
(_a = this.cache) === null || _a === void 0 ? void 0 : _a.clear();
108108
// Set new cache expiry
109109
this.cacheExpiry = new Date().getTime();
110110
}

src/MWaterDataSource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export default class MWaterDataSource extends DataSource {
124124

125125
// Clears the local cache
126126
clearCache() {
127-
this.cache?.reset()
127+
this.cache?.clear()
128128

129129
// Set new cache expiry
130130
this.cacheExpiry = new Date().getTime()

0 commit comments

Comments
 (0)