We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52f4a13 commit 22bc9c3Copy full SHA for 22bc9c3
2 files changed
lib/linear/commands/issue/take.rb
@@ -21,6 +21,7 @@ class Take
21
22
def call(issue_ids:, **options)
23
updates = issue_ids.map do |issue_id|
24
+ Rubyists::Linear::Issue.find(issue_id)
25
gimme_da_issue! issue_id # gimme_da_issue! is defined in Rubyists::Linear::CLI::Issue
26
rescue NotFoundError => e
27
logger.warn e.message
lib/linear/models/base_model/class_methods.rb
@@ -55,7 +55,7 @@ def find(id_val)
55
sym = camel_name.to_sym
56
ff = full_fragment
57
query_data = Api.query(query { __node(camel_name, id: id_val) { ___ ff } })
58
- raise NotFoundError, "No #{just_name} found with id #{id_val}" if query_data[sym].nil?
+ raise NotFoundError, "No #{just_name} found with id #{id_val}" if query_data.nil? || query_data[sym].nil?
59
60
new query_data[sym]
61
end
0 commit comments