u
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import { LIST } from '../../sql/company.js';
|
||||
|
||||
export default function list(pool) {
|
||||
return async () => {
|
||||
const result = await pool.request().query(LIST);
|
||||
return async (authId) => {
|
||||
const result = await pool
|
||||
.request()
|
||||
.input('authId', authId)
|
||||
.query(LIST);
|
||||
return result.recordset;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user