Skip to content

Commit 837f83b

Browse files
authored
Merge pull request #139 from keyxmakerx/claude/review-pending-merges-ScVUs
fix: resolve pre-existing lint issues blocking CI
2 parents d8016f6 + 6acd8b3 commit 837f83b

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

internal/plugins/campaigns/invite_service_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,10 @@ func TestListInvites(t *testing.T) {
351351
campaignRepo := newMockCampaignRepoForInvites()
352352
svc := NewInviteService(inviteRepo, campaignRepo, nil, "http://localhost:3000")
353353

354-
svc.CreateInvite(context.Background(), "camp-1", "user-1", CreateInviteInput{
354+
_, _ = svc.CreateInvite(context.Background(), "camp-1", "user-1", CreateInviteInput{
355355
Email: "p1@example.com", Role: "player",
356356
})
357-
svc.CreateInvite(context.Background(), "camp-1", "user-1", CreateInviteInput{
357+
_, _ = svc.CreateInvite(context.Background(), "camp-1", "user-1", CreateInviteInput{
358358
Email: "p2@example.com", Role: "scribe",
359359
})
360360

internal/plugins/entities/worldbuilding_prompt_service_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ func TestListForType(t *testing.T) {
134134
svc := NewWorldbuildingPromptService(repo, typeRepo)
135135

136136
etID := 1
137-
svc.Create(context.Background(), "camp-1", CreatePromptInput{
137+
_, _ = svc.Create(context.Background(), "camp-1", CreatePromptInput{
138138
Name: "A", PromptText: "prompt a", EntityTypeID: &etID,
139139
})
140140
etID2 := 2
141-
svc.Create(context.Background(), "camp-1", CreatePromptInput{
141+
_, _ = svc.Create(context.Background(), "camp-1", CreatePromptInput{
142142
Name: "B", PromptText: "prompt b", EntityTypeID: &etID2,
143143
})
144144

internal/plugins/syncapi/sync_repository.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,14 @@ func (r *syncMappingRepo) ListMappingsWithNames(ctx context.Context, campaignID
282282
}
283283

284284
// Sort.
285-
orderBy := "sm.last_synced_at DESC"
286-
if opts.Sort == "name" {
285+
var orderBy string
286+
switch opts.Sort {
287+
case "name":
287288
orderBy = "COALESCE(e.name, m.name, sm.chronicle_id) ASC"
288-
} else if opts.Sort == "type" {
289+
case "type":
289290
orderBy = "sm.chronicle_type ASC, sm.last_synced_at DESC"
291+
default:
292+
orderBy = "sm.last_synced_at DESC"
290293
}
291294

292295
limit := opts.Limit

0 commit comments

Comments
 (0)