diff --git a/models/Pagans.js b/models/Pagans.js index c751324..9035334 100644 --- a/models/Pagans.js +++ b/models/Pagans.js @@ -126,7 +126,7 @@ Pagans.sendmailkey = (data) => { let tplfile=`../../nationchains/tribes/${data.tribe}/template/createidentity_${data.lg}.js`; - if (!fs.existsSync(tpfile)){ + if (!fs.existsSync(tplfile)){ tplfile=`../../nationchains/tribes/adminapi/template/createidentity_${data.lg}.js`; if (!fs.existsSync(tplfile)){ return {