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