generated from the-collab-lab/smart-shopping-list
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating dateNextPurchased with smart calculation of new date (#33)
* created getDaysBetweenDates function Co-authored-by: Ross Clettenberg <RossaMania@users.noreply.github.com> * getting the last updated date of the item Co-authored-by: Ross Clettenberg <RossaMania@users.noreply.github.com> * update getDaysBetweenDates to only return whole numbers Co-authored-by: Ross Clettenberg <RossaMania@users.noreply.github.com> * update updateItem function to calculate a new dateNextPurchased and save to DB Co-authored-by: Ross Clettenberg <RossaMania@users.noreply.github.com> * added clarification comment for previousEstimate variable Co-authored-by: Ross Clettenberg <RossaMania@users.noreply.github.com> * removing accidental import of random last func * put testing console.log in for showing the changes Co-authored-by: Ross Clettenberg <RossaMania@users.noreply.github.com> * removed console.logs * switch to Math.floor to make sure focus is on full days passed --------- Co-authored-by: Ross Clettenberg <RossaMania@users.noreply.github.com>
- Loading branch information
1 parent
7bacfe6
commit 5ea939b
Showing
4 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
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
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