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

plants will die when community waters are cleared at the end of the week #30

Closed
xfnw opened this issue Jul 19, 2020 · 1 comment
Closed

Comments

@xfnw
Copy link

xfnw commented Jul 19, 2020

if the plant owner waters the plant, disappears for a week, and during that time someone else waters the plant every day, and then sunday rolls around, the visitors will be cleared and the plant will die if the owner comes back even though it has not been a week since the plant was last watered

@jifunks
Copy link
Owner

jifunks commented Sep 15, 2020

nah, the visitors.json is the source of truth for this, it is only consumed/cleared when the plant owner returns and opens the app (or leaves the app running, which I still don't recommend). the visitors being cleared is only done for the sql table (which is just a record).
there is a bug here that you won't see someone visited you a bunch of times though :( but your plant will live :)

@jifunks jifunks closed this as completed Sep 15, 2020
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

No branches or pull requests

2 participants