Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Chavdar Angelov committed Jan 11, 2024
1 parent 0c9823a commit 4739ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ public async Task<Movie[]> GetMovies()

public async Task<Movie> UpdateMovieTitle(Guid id, string newTitle)
{
var movie = await FindMovie(id);
if (movie == null)
throw new InvalidOperationException($"Movie with id {id} not found");
var movie = await FindMovie(id) ?? throw new InvalidOperationException($"Movie with id {id} not found");

movie.Title = newTitle;
_context.Movies.Update(movie);
Expand Down
2 changes: 1 addition & 1 deletion src/GraphQL.Conventions/GraphQL.Conventions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>GraphQL Conventions for .NET</Description>
<VersionPrefix>7.4.0</VersionPrefix>
<VersionPrefix>7.4.0-preview</VersionPrefix>
<Authors>Tommy Lillehagen</Authors>
<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
<LangVersion>9.0</LangVersion>
Expand Down

0 comments on commit 4739ab3

Please sign in to comment.