Skip to content

Commit

Permalink
Merge 539812f into 913710e
Browse files Browse the repository at this point in the history
  • Loading branch information
micah-akpan committed May 8, 2019
2 parents 913710e + 539812f commit 772cfe6
Show file tree
Hide file tree
Showing 9 changed files with 344 additions and 38 deletions.
2 changes: 1 addition & 1 deletion src/controllers/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export const publishArticle = async (req, res) => {
} catch (error) {
return responseHandler(res, 500, { status: 'error', message: 'An internal server error occured!' });
}
}
};

/* @description This gets the reading stats of the user
* @function getReadingStats
Expand Down
35 changes: 17 additions & 18 deletions src/seeders/20190402090906-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
password: '$2a$10$ijw.0rXSMhzRlBWV1xsEEOOZ3c6sVnVE7TmzttlfwtojXOtPd8hte',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
role: 'admin',
verified: true,
Expand All @@ -25,7 +25,7 @@ export default {
password: '$2a$10$ijw.0rXSMhzRlBWV1xsEEOOZ3c6sVnVE7TmzttlfwtojXOtPd8hte',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
role: 'admin',
verified: false,
Expand All @@ -41,7 +41,7 @@ export default {
password: '$2a$10$ijw.0rXSMhzRlBWV1xsEEOOZ3c6sVnVE7TmzttlfwtojXOtPd8hte',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
role: 'admin',
createdAt: new Date(),
Expand All @@ -55,7 +55,7 @@ export default {
password: '$2a$10$vZU/3YSDac3JTh53Ti0SPugEi2.6cfl2iBmN/guxiXOAKnxoprcVC',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
role: 'admin',
createdAt: new Date(),
Expand All @@ -69,7 +69,7 @@ export default {
password: '$2a$10$ijw.0rXSMhzRlBWV1xsEEOOZ3c6sVnVE7TmzttlfwtojXOtPd8hte',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
role: 'author',
createdAt: new Date(),
Expand All @@ -83,7 +83,7 @@ export default {
password: '$2a$10$F83SBdFDL.dFEeCKm3YC6O/NXKeYO/QxxsZY2FN/W2DoG38hhdhbi',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
role: 'author',
verified: true,
Expand All @@ -100,7 +100,7 @@ export default {
password: '$2y$10$N9JKEBqy0MUi7bH1a07/pOWBLj2Me9UTAAM56qBH54lSzxdvV4Dxe',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
role: 'author',
verified: true,
Expand All @@ -117,7 +117,7 @@ export default {
password: '$2a$10$ijw.0rXSMhzRlBWV1xsEEOOZ3c6sVnVE7TmzttlfwtojXOtPd8hte',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
role: 'author',
createdAt: new Date(),
Expand All @@ -131,27 +131,26 @@ export default {
password: '$2a$10$ijw.0rXSMhzRlBWV1xsEEOOZ3c6sVnVE7TmzttlfwtojXOtPd8hte',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
role: 'author',
createdAt: new Date(),
updatedAt: new Date(),
},
{
id: 'd81da338-a52a-411e-93f1-b2a74a31414a',
fullName: 'Tdd Opps',
email: 'chike.a.ozulumba@andela.com',
username: 'chiketddchikeandela',
id: '7e824eba-2a9e-4933-affa-6a3da937e47a',
fullName: 'Sherlock Holmes',
email: 'sherlock@holmes.com',
username: 'sherlock',
password: '$2a$10$ijw.0rXSMhzRlBWV1xsEEOOZ3c6sVnVE7TmzttlfwtojXOtPd8hte',
bio:
"Hold on now, aren't there already specs for this kind of thing? - Well... no. While there are a few handy specifications for dealing with JSON data, most notably Douglas Crockford's JSONRequest proposal, there's nothing to address the problems of general application-level messaging. More on this later.",
imageUrl: 'http://waterease.herokuapp.com/images/board/comfort.jpg',
bio: 'my bio',
imageUrl: 'https://res.cloudinary.com/dmq014llt/image/upload/v1557326099/people/beautiful-brunette-cute.jpg',
notification: true,
verificationToken: 'cd5bb9a0-270d-4b1f-88e7-605de02a4b09',
role: 'author',
role: 'admin',
createdAt: new Date(),
updatedAt: new Date(),
},
}
],
{}
),
Expand Down
Loading

0 comments on commit 772cfe6

Please sign in to comment.