Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

converts donation.total from string to number #246

Merged
merged 1 commit into from
Sep 28, 2017

Conversation

ik226
Copy link
Contributor

@ik226 ik226 commented Sep 26, 2017

server/controllers/donation.js - when creating new donation model,
‘value’ inside request body is sent as string from client. So we can convert ‘item.value’ to Number inside reduce function which is being used for assigning new value for ‘total’ key

closes #243

@kenjiO kenjiO merged commit ca43ea5 into freeCodeCamp:staging Sep 28, 2017
@ik226 ik226 deleted the fix/donation-value-string branch September 28, 2017 21:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Donation Values Treated as Strings
2 participants