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",