mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-19 12:09:15 +00:00
start with adapter
This commit is contained in:
12
adapter/index.js
Normal file
12
adapter/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const {getData} = require('./mysql')
|
||||
|
||||
const get = (step) => new Promise((resolve, reject) => {
|
||||
if(process.env.DATABASE === 'mysql'){
|
||||
getData(step,(dt) => {
|
||||
console.log('--->datos--',dt)
|
||||
resolve(dt)
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
module.exports = {get}
|
||||
Reference in New Issue
Block a user