Skip to content

Commit b823afc

Browse files
committed
Fix collection keys
1 parent 0fdf1d7 commit b823afc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

JavaScript/1-HTTP/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const cacheFile = name => {
2222
const method = require(filePath);
2323
api.set(key, method);
2424
} catch (e) {
25-
api.delete(name);
25+
api.delete(key);
2626
}
2727
};
2828

JavaScript/2-WS/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const cacheFile = name => {
2323
const method = require(filePath);
2424
api.set(key, method);
2525
} catch (e) {
26-
api.delete(name);
26+
api.delete(key);
2727
}
2828
};
2929

0 commit comments

Comments
 (0)