u
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
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)
|
||||
.input('email', email)
|
||||
.query(REMOVE_ALLOWED_EMAIL);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user