From 1ea48d0933706173d720d65635aee3a5bb8f3352 Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 20 Feb 2024 15:14:58 +0100 Subject: [PATCH] clean --- models/Pagans.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/Pagans.js b/models/Pagans.js index fdfcfbe..c751324 100644 --- a/models/Pagans.js +++ b/models/Pagans.js @@ -126,9 +126,9 @@ Pagans.sendmailkey = (data) => { let tplfile=`../../nationchains/tribes/${data.tribe}/template/createidentity_${data.lg}.js`; - if (!existsSync(tpfile)){ + if (!fs.existsSync(tpfile)){ tplfile=`../../nationchains/tribes/adminapi/template/createidentity_${data.lg}.js`; - if (!existsSync(tplfile)){ + if (!fs.existsSync(tplfile)){ return { status:406, ref:"Pagans",