SylTi / bitfunding

Bitcoin Crowdfunding in MEAN
http://bitfunding.herokuapp.com/
7 stars 7 forks source link

Project status in db #23

Closed gogson closed 9 years ago

gogson commented 9 years ago

Instead of deducing the project status, put an attribute in db. Default status : "inactive"

SylTi commented 9 years ago

Don't use the attribute active already in for ongoing, use something new like status. It will be used for projectenddate

Not sure what you mean by "Admins can apply contributions only when project is "finished" "

take a look at #24

SylTi commented 9 years ago

The other problem with that is that we have 5 status and some of them depend on the date of the day not only the amount contributed, so where are we supposed to update them ? No cron obv

or we could just code some helpers like isOngoing() isFinished()

gogson commented 9 years ago

Ok for the helpers solution. We'll need one for client and one for server ? (the same but for both sides)

SylTi commented 9 years ago

Yeah that's the all point of using JS on both side, we can share the code :smile: