Fix tap-facebook's buffer days failing for strings and zero value
The way insights_buffer_days
is currently parsed from the config file:
- If it is
0
then the default value of 28 days is set (not allowing the tap to run without a buffer) - A
TypeError
is raised when a string is passed (not allowing the config values to be set as a string as some times Meltano does)
Update the way insights_buffer_days
is parsed to:
- Allow for the value of
0
--> tap runs without a buffer - Accept for integer values encoded as strings:
"15"
should be treated as15
- Don't fail with a
TypeError
on misconfigurations:"sdfsdf"
should run the tap with the defaultinsights_buffer_days=28