efcsydney/efcsydney-roster

View on GitHub
api/data/changelog-repository.js

Summary

Maintainability
A
0 mins
Test Coverage
const { Changelog } = require('../models/changelog');

async function createChangelog(changelog) {
  return await Changelog.create(changelog);
}

async function getChangelogs() {
  return await Changelog.findAll({
    limit: 100,
    order: [['id', 'DESC']]
  });
}
module.exports = {
  createChangelog,
  getChangelogs
};