You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since stories are unique by author_id and slug and users are unique by slug, we should change the edit-story route from /edit/:storySlug to /edit/:authorSlug/:storySlug.
To do:
change route
add graphql query storyByAuthorSlugAndStorySlug
query story using above with authorSlug and storySlug
check authorSlug to session.slug?
deploy
remove graphql query storyBySlug
The query is already indexed since news.stories is unique on (author_id, slug).
The text was updated successfully, but these errors were encountered:
Since stories are unique by
author_id
andslug
and users are unique byslug
, we should change theedit-story
route from/edit/:storySlug
to/edit/:authorSlug/:storySlug
.To do:
storyByAuthorSlugAndStorySlug
authorSlug
andstorySlug
authorSlug
tosession.slug
?storyBySlug
The query is already indexed since
news.stories
is unique on(author_id, slug)
.The text was updated successfully, but these errors were encountered: