Fix incorrect declarations

This commit is contained in:
Robbie Antenesse 2020-02-06 17:27:22 -07:00
parent 963049e4c8
commit ccf55e1955
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
const BooksController = require('../controllers/books');
const BooksController = require('../controllers/bookData');
async function routes(fastify, options) {
fastify.get('/api/books', async (request, reply) => {

View File

@ -49,10 +49,10 @@ module.exports = sequelize => sequelize.define('Follow', {
}, {
indexes: [
{
fields: ['follower', 'domain'],
fields: ['follower', 'followerDomain'],
},
{
fields: ['following', 'domain'],
fields: ['following', 'followingDomain'],
},
],
scopes: {