Atlas > Collection

This commit is contained in:
Tom Moor
2017-05-27 11:08:52 -07:00
parent 8883231f01
commit 639a0ec45c
8 changed files with 30 additions and 27 deletions

View File

@ -1,5 +1,5 @@
import _ from 'lodash';
import { Document, Atlas, User } from './models';
import { Document, Collection, User } from './models';
import presentUser from './presenters/user';
@ -40,7 +40,7 @@ export async function presentDocument(ctx, document, options) {
if (options.includeCollection) {
data.collection = await ctx.cache.get(document.atlasId, async () => {
const collection = await Atlas.findOne({
const collection = await Collection.findOne({
where: {
id: document.atlasId,
},