Skip to content

Missing existence check before creating a Guard #89

@Balaji-Parimelazhagan

Description

@Balaji-Parimelazhagan

Problem:
The function directly adds a new GuardItem without checking if a record with the same name (or ID) already exists.
When such a record exists, db.commit() raises an exception, causing a 500 Internal Server Error.

Expected Behavior:
Before creating a new GuardItem, the function should query the database to check for existing entries with the same unique fields.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions