Skip to content

Fix empty strings in activity counts - #165

Open
sawyerb-ksu wants to merge 1 commit into
suma-project:masterfrom
sawyerb-ksu:fix-activities
Open

Fix empty strings in activity counts#165
sawyerb-ksu wants to merge 1 commit into
suma-project:masterfrom
sawyerb-ksu:fix-activities

Conversation

@sawyerb-ksu

@sawyerb-ksu sawyerb-ksu commented Oct 10, 2025

Copy link
Copy Markdown

Adds a check for blank strings "" within the session activities objects to correct issues such as:

...
{
    "timestamp": 1758644704,
    "location": 53,
    "activities": [
        62,
        ""
    ],
    "number": 1
},
...

When a blank string is passed in the activities array, it creates a 500 error on the server and the database transaction cannot complete. This change sanitizes/removes blank strings from the data to prevent this error.

Addresses Issue #164

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.

1 participant