Commit 5e34444e authored by Yannis Barlas's avatar Yannis Barlas

downgrade login && update seed.js

parent 471327a6
......@@ -26,17 +26,38 @@ const seed = async () => {
await collection.save()
const fragment1 = await new Fragment({
title: 'My first post',
title: 'A great paper',
authors: ['Yannis Barlas', 'Adam Hyde'],
owners: [user.id],
}).save()
const fragment2 = await new Fragment({
title: 'My second post',
title: 'A magnificent paper',
authors: ['Alex Theg', 'Ana Ellis'],
owners: [user.id],
}).save()
const fragment3 = await new Fragment({
title: 'A superb paper',
authors: ['Charlie Rutter', 'Carly Strauss'],
owners: [user.id],
}).save()
const fragment4 = await new Fragment({
title: 'A fantastic paper',
authors: ['Alisson Zulowski', 'John Chodaki'],
owners: [user.id],
}).save()
// const fragment2 = await new Fragment({
// title: 'My second post',
// owners: [user.id],
// }).save()
collection.addFragment(fragment1)
collection.addFragment(fragment2)
collection.addFragment(fragment3)
collection.addFragment(fragment4)
await collection.save()
logger.info('Seeding complete.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment