Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated EOD reminder to include 2019 Summer RAs and remove ex-RAs #42

Merged
merged 1 commit into from
Jun 3, 2019

Conversation

naiuhz
Copy link
Contributor

@naiuhz naiuhz commented May 14, 2019

No description provided.

@naiuhz naiuhz requested review from poftadeh and belavina May 14, 2019 15:32
// Olga: 8:30PM
// Stuart: 9PM
// Raymond: 9AM

// Checks the time to send custom EOD reminders
const checkTime = (clock) => {
if (clock.second === 0) {
if (clock.minute === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This big if-else chain needs refactoring. RA names and messages should also not be hard coded. Consider creating an array of RA objects that have names, reminder times, and messages. Then iterate through that.

@poftadeh poftadeh self-requested a review May 15, 2019 03:39
@poftadeh poftadeh self-requested a review May 15, 2019 21:41
Copy link
Contributor

@poftadeh poftadeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this for now so that people can get their reminders. The refactoring can be done at a later time.

@naiuhz naiuhz merged commit 011d993 into master Jun 3, 2019
@naiuhz naiuhz deleted the feature-osteppy-add-summer-RAs branch June 3, 2019 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants