Skip to content

Commit dc40ad6

Browse files
committed
Corrects problem with issue fragment
1 parent bef897b commit dc40ad6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
linear-cli (0.7.1)
4+
linear-cli (0.7.2)
55
base64 (~> 0.2)
66
dry-cli (~> 1.0)
77
dry-cli-completion (~> 1.0)

lib/linear/models/user.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ class User
1818
email
1919
end
2020

21-
def self.with_teams
21+
def self.base_fragment
2222
@with_teams = fragment('UserWithTeams', 'User') do
2323
___ Base
2424
teams do
25-
nodes { ___ Team::Base }
25+
nodes { ___ Team.base_fragment }
2626
end
2727
end
2828
end
2929

30-
def self.me(teams: false)
31-
fragment = teams ? with_teams : Base
30+
def self.me(**)
31+
fragment = base_fragment
3232
q = query do
3333
viewer do
3434
___ fragment
@@ -48,7 +48,7 @@ def issue_query(first)
4848
query do
4949
user(id:) do
5050
assignedIssues(first:, filter: { completedAt: { null: true } }) do
51-
nodes { ___ Issue::Base }
51+
nodes { ___ Issue.base_fragment }
5252
end
5353
end
5454
end

0 commit comments

Comments
 (0)