Files
dashlibstorage/src/store/google_auth/removeAllowedEmail.js
2026-07-31 05:57:23 +02:00

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