From e34af091bca21e485a1844749bd42f6d9860e5bf Mon Sep 17 00:00:00 2001 From: William Mantly Date: Fri, 1 Jan 2021 16:50:16 -0500 Subject: [PATCH] fixed typo --- nodejs/models/host.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodejs/models/host.js b/nodejs/models/host.js index ddb8b6a..ea5c61f 100755 --- a/nodejs/models/host.js +++ b/nodejs/models/host.js @@ -16,7 +16,7 @@ const Host = RedisModel({ 'forcessl': {isRequired: false, default: true, type: 'boolean'}, 'targetssl': {isRequired: false, default: false, type: 'boolean'}, 'created_by': {isRequired: true, type: 'string', min: 3, max: 500}, - 'is_cahced': {default: false, isRequired: false, type: 'boolean',}, + 'is_cache': {default: false, isRequired: false, type: 'boolean',}, } @@ -34,13 +34,13 @@ const Cached = RedisModel({ Host.addCache = async function(host, parentOBJ){ try{ - await Host.__proto__.add.apply(this, [{...parentOBJ, host, is_cahced: true}, true]) + await Host.__proto__.add.apply(this, [{...parentOBJ, host, is_cache: true}, true]) await Cached.add({ host: host, parent: parentOBJ.host }); }catch(error){ - console.error('add cahce error', {...parentOBJ, host, is_cahced: true}, error) + console.error('add cahce error', {...parentOBJ, host, is_cache: true}, error) throw error; } };