bcgov/nr-get-token

View on GitHub
app/src/services/audit.js

Summary

Maintainability
A
0 mins
Test Coverage
const db = require('../models');

module.exports = {
  async findHistory(acronym) {
    return await db.Acronym.findOne({
      include: [
        {
          model: db.DeploymentHistory,
          include: [
            {
              model: db.User
            }
          ]
        }
      ],
      where: { acronym: acronym }
    });
  }
};