12 lines
293 B
JavaScript
12 lines
293 B
JavaScript
import sql from 'mssql';
|
|
import { REMOVE_ALLOWED_EMAIL } from '../../sql/google_auth.js';
|
|
|
|
export default function removeAllowedEmail(pool) {
|
|
return async (email) => {
|
|
await pool
|
|
.request()
|
|
.input('email', sql.NVarChar(320), email)
|
|
.query(REMOVE_ALLOWED_EMAIL);
|
|
};
|
|
}
|