mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-13 08:48:59 +08:00
forbid "undefined" cache value
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = function(options = {}) {
|
||||
}
|
||||
},
|
||||
set: (key, value, maxAge) => {
|
||||
if (!value) {
|
||||
if (!value || value === 'undefined') {
|
||||
value = '';
|
||||
}
|
||||
if (typeof value === 'object') {
|
||||
|
||||
@@ -47,7 +47,7 @@ module.exports = function(options = {}) {
|
||||
}
|
||||
},
|
||||
set: async (key, value, maxAge) => {
|
||||
if (!value) {
|
||||
if (!value || value === 'undefined') {
|
||||
value = '';
|
||||
}
|
||||
if (typeof value === 'object') {
|
||||
|
||||
Reference in New Issue
Block a user