Skip to content

🐛 DataSet service returns unresolved Promise due to missing await #50

@morningstarxcdcode

Description

@morningstarxcdcode

📌 Report Title\n\nDataSet service returns unresolved Promise due to missing await\n\n---\n\n## 📋 Description\n in constructs a instance and calls without . This returns a Promise instead of the resolved response, which can lead to unexpected behavior for callers that assume a resolved value.\n\n---\n\n## 🔄 Steps to Reproduce\n1. Mock to return a resolved value (e.g., a string or object).\n2. Call and check the returned value type.\n3. Observe a Promise is returned instead of the resolved value.\n\n---\n\n## ✅ Expected Behavior\n should the call and return the resolved value (or a safe fallback on error).\n\n---\n\n## 🚫 Actual Behavior\nThe function currently returns the Promise returned by without awaiting it.\n\n---\n\n## ✅ Fix / Recommendation\nAdd to and add a unit test verifying the resolved output is returned.\n\n---\n\n## 💻 Environment\n- Repo: main branch\n- File: \n\nI will open a PR with a small fix and a unit test that mocks and asserts the resolved value is returned.,assignee:}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions