{"size": 325, "ext": "js", "max_stars_repo_path": "src/models/account-model.js", "max_stars_repo_name": "riflemanIm/api-node.js-knex-mysql", "max_stars_repo_stars_event_min_datetime": "2021-09-16T20:37:47.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-16T20:37:47.000Z", "max_issues_repo_path": "src/models/account-model.js", "max_issues_repo_name": "riflemanIm/api-node.js-knex-mysql", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/models/account-model.js", "max_forks_repo_name": "riflemanIm/api-node.js-knex-mysql", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.2142857143, "max_line_length": 46, "alphanum_fraction": 0.5846153846}
//const db = require("../config/dbConfig.js");
import db from "../config/dbConfig.js";

// GET SPECIFIC ACCOUNT BY EMAIL
export const findByEmail = (email) => {
  return db("account")
    .where("email", email)
    .first()
    .then((row) => row)
    .catch((err) => {
      console.log("Err findByEmail:", err);
    });
};
