Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. "use strict";
  2.  
  3. const utils = require("../utils");
  4.  
  5. const api = async ({ sql, getConnection }) => {
  6. const sqlQueries = await utils.loadSqlQueries("events");
  7. const getSecurity = async SecurityKey => {
  8. const cnx = await getConnection();
  9. const request = await cnx.request();
  10. request.input('SecurityKey', SecurityKey);
  11. return request.query(sqlQueries.getSecurity);
  12. };
  13.  
  14. return {
  15. getSecurity
  16. };
  17. };
  18.  
  19. module.exports = { api };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement