Initial commit

This commit is contained in:
2023-11-03 21:12:55 +01:00
parent a4afe6cc85
commit 57362e7520
39 changed files with 3505 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
module.exports = {
name:"validate",
check: async function(apiKey){
return new Promise(async (resolve,reject) => {
if(apiKey == undefined){
reject(1)
}
let user = await commands.get("query").function("SELECT idUser from tbl_users WHERE dtApiKey = ?",[apiKey])
if(user.length == 1){
resolve(user[0].idUser)
}else{
// resolve(false)
reject(2)
}
})
}
}