u
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import sql from 'mssql';
|
||||
import { ADD } from '../../sql/companyuser.js';
|
||||
|
||||
export default function add(pool) {
|
||||
return async (companyId, authId) => {
|
||||
const result = await pool
|
||||
.request()
|
||||
.input('companyId', sql.Int, companyId)
|
||||
.input('authId', sql.Int, authId)
|
||||
.input('companyId', companyId)
|
||||
.input('authId', authId)
|
||||
.query(ADD);
|
||||
|
||||
return result.recordset[0].id;
|
||||
|
||||
Reference in New Issue
Block a user