Skip to content

New workspace not added to type index when url already exists #28

@jg10-mastodon-social

Description

@jg10-mastodon-social

I haven't yet been able to track down exactly where the behaviour differs but my best guess so far is within Workspace.create:

const formWorkspace = await (workspace ? workspace.update(updates) : Workspace.create(updates));

It seems that a 404 when fetching the URL is followed by its creation and addition to the type index.

If it already exists it seems there is currently no check that it's already in the type index, which it seems then breaks assumptions of other functionality #27 #26 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions