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

save to file as changes are made instead of time interval #31

Closed
ech-jey opened this issue Oct 23, 2014 · 2 comments
Closed

save to file as changes are made instead of time interval #31

ech-jey opened this issue Oct 23, 2014 · 2 comments

Comments

@ech-jey
Copy link

ech-jey commented Oct 23, 2014

I am running the json-server using my own json file. I am able to POST and PUT, and when I do, the server save the changes to the file periodically. Is there any way to specify that the server should save the file whenever there is a change, instead of a time interval? I could not figure out what the time interval is. It seems to be inconsistent.

Thanks in advance,
Jamie

@typicode
Copy link
Owner

Thanks for pointing that out. I think it's a bug in LowDB, which was refactored recently.

I'll fix that.

@typicode
Copy link
Owner

I've published v0.5.4, please tell me if you still have the problem.

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