Commit 69673886 authored by Mario de la Ossa's avatar Mario de la Ossa

Fix last two object_from_id usages

parent 73f40585
...@@ -17,7 +17,7 @@ module Mutations ...@@ -17,7 +17,7 @@ module Mutations
discussion_id = nil discussion_id = nil
if args[:discussion_id] if args[:discussion_id]
discussion = GitlabSchema.object_from_id(args[:discussion_id]) discussion = GitlabSchema.object_from_id(args[:discussion_id], expected_type: ::Discussion)
authorize_discussion!(discussion) authorize_discussion!(discussion)
discussion_id = discussion.id discussion_id = discussion.id
......
...@@ -30,7 +30,7 @@ module Types ...@@ -30,7 +30,7 @@ module Types
# most recent `Version` for an issue # most recent `Version` for an issue
Gitlab::SafeRequestStore.fetch([request_cache_base_key, 'stateful_version', object.issue_id, version_gid]) do Gitlab::SafeRequestStore.fetch([request_cache_base_key, 'stateful_version', object.issue_id, version_gid]) do
if version_gid if version_gid
GitlabSchema.object_from_id(version_gid)&.sync GitlabSchema.object_from_id(version_gid, expected_type: ::DesignManagement::Version)&.sync
else else
object.issue.design_versions.most_recent object.issue.design_versions.most_recent
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment