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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy