Skip to content

Catch the ActiveRecord::RecordNotFound and trigger an unsubscribe #5

@collimarco

Description

@collimarco

If for some reasons (e.g. lost connection) the feed gets deleted from the database and the subscription is not properly removed from Superfeedr, it would be useful to catch the ActiveRecord::RecordNotFound exception (raised here) and rescue with a SuperfeedrEngine::Engine.unsubscribe(@feed).
This is safe since that exception is only raised if the database query is successful and the record is not found.

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