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

fix: moment.tz is not a function #7

Merged
merged 1 commit into from
Jan 4, 2021
Merged

Conversation

mt-yohei-koyama
Copy link
Contributor

This library uses moment-timezone and the requirement is wrong.

ref:

Currently we have the following error by this

{
    "errorMessage": "moment(...).tz is not a function",
    "errorType": "TypeError",
    "stackTrace": [
        "TypeError: moment(...).tz is not a function",
        "    at Search.newSearchJob (/Users/yoheikoyama/ghq/github.com/mt-yohei-koyama/tidy-up/node_modules/@moneytree/sumologic-client/src/search.js:113:50)",
        "    at Search._getIterator (/Users/yoheikoyama/ghq/github.com/mt-yohei-koyama/tidy-up/node_modules/@moneytree/sumologic-client/src/search.js:180:30)",
        "    at _getIterator.next (<anonymous>)",
        "    at exports.run (/Users/yoheikoyama/ghq/github.com/mt-yohei-koyama/tidy-up/src/handler.js:48:20)"
    ]
}

This library uses moment-timezone and the requirement is wrong.

- https://momentjs.com/timezone/docs/
- https://stackoverflow.com/a/48724909
@mt-yohei-koyama
Copy link
Contributor Author

@moneytree/link-data It would be great if someone could review this. It's an easy fix

@mt-dfcowell mt-dfcowell merged commit 7e520f1 into master Jan 4, 2021
@mt-yohei-koyama
Copy link
Contributor Author

Thanks Dan!

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

Successfully merging this pull request may close these issues.

2 participants