u
This commit is contained in:
12
src/store/google_auth/setSelectedCompany.js
Normal file
12
src/store/google_auth/setSelectedCompany.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import sql from 'mssql';
|
||||
import { SET_SELECTED_COMPANY } from '../../sql/google_auth.js';
|
||||
|
||||
export default function setSelectedCompany(pool) {
|
||||
return async (id, companyId) => {
|
||||
await pool
|
||||
.request()
|
||||
.input('id', sql.Int, id)
|
||||
.input('companyId', sql.Int, companyId)
|
||||
.query(SET_SELECTED_COMPANY);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user