-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug(Email): Fix all email related bugs
Give appropratie text to the verification email subject Add the appropraite styling to the recieved emails Fix the swagger endpoint for verify email link [Fixes #167721942]
- Loading branch information
Showing
10 changed files
with
93 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
server/db/migrations/20190802091121-update-articleBody-row.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
up: (queryInterface, Sequelize) => queryInterface | ||
.changeColumn('Articles', 'articleBody', { | ||
type: Sequelize.TEXT, | ||
allowNull: false | ||
}), | ||
|
||
down: (queryInterface, Sequelize) => queryInterface | ||
.changeColumn('Articles', 'articleBody', { | ||
type: Sequelize.TEXT, | ||
allowNull: false | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import faker from 'faker'; | ||
|
||
const tags = ['js', 'andela', 'react', 'culture', 'sequelize', 'homely', 'travel', 'anime', 'happy']; | ||
|
||
const articles = [{ | ||
title: 'the title', | ||
articleBody: 'test article body', | ||
description: 'test description', | ||
tagList: 'happy', | ||
image: 'test image', | ||
slug: 'the-title', | ||
authorId: 1, | ||
createdAt: new Date(), | ||
updatedAt: new Date() | ||
}, { | ||
title: 'the title', | ||
articleBody: 'test article body', | ||
description: 'test description', | ||
tagList: 'marriage', | ||
image: 'test image', | ||
slug: 'the-title-0337485', | ||
authorId: 26, | ||
createdAt: new Date(), | ||
updatedAt: new Date() | ||
}]; | ||
for (let i = 0; i < 20; i += 1) { | ||
const title = faker.random.words(); | ||
articles.push({ | ||
title, | ||
articleBody: faker.lorem.text(), | ||
description: faker.lorem.sentence(), | ||
tagList: tags[Math.floor(Math.random() * tags.length)], | ||
image: faker.random.image(), | ||
slug: title.split(' ').join('-') || title, | ||
authorId: faker.random.number({ min: 1, max: 20 }), | ||
createdAt: new Date(), | ||
updatedAt: new Date() | ||
}); | ||
} | ||
|
||
module.exports = { | ||
up: queryInterface => queryInterface.bulkInsert('Articles', articles, {}), | ||
|
||
down: queryInterface => queryInterface.bulkDelete('Articles', null, {}) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.