Skip to content

[Bug] Notifications fall back to generic A user due to missing name property #44

Description

@Jaswanth-006

Describe the Bug

In app/routers/dashboard.py, the express_interest endpoint tries to read the current user's name from current_user.get("name").
However, the get_current_user dependency only extracts user_id and role from the JWT token.
This results in the name resolving to None and notifications displaying "A user (student) is interested in your collaboration..." instead of the actual name.

Expected Behavior

The user name should be fetched from the database before generating notification nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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