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

Duplicate entry in offline file #55

Closed
nilsbehlen opened this issue Mar 17, 2020 · 0 comments
Closed

Duplicate entry in offline file #55

nilsbehlen opened this issue Mar 17, 2020 · 0 comments

Comments

@nilsbehlen
Copy link
Member

If the offline values are emtpy and the offline refill fails (because the system is offline), the next offline refill try while being online creates another json object in the offline file resulting in the following:
"offline": [
{
"count": "20",
"refilltoken": "old refill token",
"response": null,
"serial": "serial",
"user": "",
"username": "username"
},
{
"count": "20",
"refilltoken": "new refill token",
"response": { ...,
....
},
"serial": "serial",
"user": "",
"username": "username"
}
]

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

1 participant