{"size": 368, "ext": "js", "max_stars_repo_path": "api/utils/qpointer.utils.js", "max_stars_repo_name": "SutharMukesh/quizifer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "api/utils/qpointer.utils.js", "max_issues_repo_name": "SutharMukesh/quizifer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "api/utils/qpointer.utils.js", "max_forks_repo_name": "SutharMukesh/quizifer", "max_forks_repo_forks_event_min_datetime": "2021-01-23T14:03:33.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-23T14:03:33.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.6470588235, "max_line_length": 49, "alphanum_fraction": 0.6657608696}
const QPointer = require("../models/QPointer");

const getQPointer = async () => {
    const qPointer = await QPointer.find();
    return qPointer[0];
};

const setQPointer = async (qPointer) => {
    const qPointerModel = new QPointer(qPointer);
    qPointer = await qPointerModel.save();
    return qPointer;
};

module.exports = {
    getQPointer,
    setQPointer
}