This commit is contained in:
seb
2026-07-31 05:34:45 +02:00
parent 806d077d57
commit 09c7a8bc74
19 changed files with 405 additions and 30 deletions

View 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);
};
}