First commit of the new Insider version on docker
This commit is contained in:
16
models/paramModel.js
Normal file
16
models/paramModel.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const mysql = require('mysql2/promise');
|
||||
const pool = require('../config/database');
|
||||
|
||||
async function getUsers() {
|
||||
const connection = await pool.getConnection();
|
||||
try {
|
||||
const [rows] = await connection.execute('SELECT * FROM cdn');
|
||||
return rows || [];
|
||||
} finally {
|
||||
connection.release();
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getUsers
|
||||
};
|
||||
Reference in New Issue
Block a user