Skip to content

Commit 4782efe

Browse files
committed
update csharpier
1 parent 292e83f commit 4782efe

File tree

15 files changed

+21
-20
lines changed

15 files changed

+21
-20
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"isRoot": true,
44
"tools": {
55
"csharpier": {
6-
"version": "0.28.0",
6+
"version": "0.30.6",
77
"commands": [
88
"dotnet-csharpier"
9-
]
9+
],
10+
"rollForward": false
1011
}
1112
}
1213
}

src/Conduit/Features/Articles/Create.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ CancellationToken cancellationToken
7676
UpdatedAt = DateTime.UtcNow,
7777
Description = message.Article.Description,
7878
Title = message.Article.Title,
79-
Slug = message.Article.Title.GenerateSlug()
79+
Slug = message.Article.Title.GenerateSlug(),
8080
};
8181
await context.Articles.AddAsync(article, cancellationToken);
8282

src/Conduit/Features/Articles/Edit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ IEnumerable<string> articleTagList
114114
Article = article,
115115
ArticleId = article.ArticleId,
116116
Tag = new Tag { TagId = tag },
117-
TagId = tag
117+
TagId = tag,
118118
};
119119
articleTagsToCreate.Add(at);
120120
}

src/Conduit/Features/Comments/Create.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ CancellationToken cancellationToken
5454
Author = author,
5555
Body = message.Model.Comment.Body ?? string.Empty,
5656
CreatedAt = DateTime.UtcNow,
57-
UpdatedAt = DateTime.UtcNow
57+
UpdatedAt = DateTime.UtcNow,
5858
};
5959
await context.Comments.AddAsync(comment, cancellationToken);
6060

src/Conduit/Features/Favorites/Add.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ CancellationToken cancellationToken
6666
Article = article,
6767
ArticleId = article.ArticleId,
6868
Person = person,
69-
PersonId = person.PersonId
69+
PersonId = person.PersonId,
7070
};
7171
await context.ArticleFavorites.AddAsync(favorite, cancellationToken);
7272
await context.SaveChangesAsync(cancellationToken);

src/Conduit/Features/Followers/Add.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ CancellationToken cancellationToken
6969
Observer = observer,
7070
ObserverId = observer.PersonId,
7171
Target = target,
72-
TargetId = target.PersonId
72+
TargetId = target.PersonId,
7373
};
7474
await context.FollowedPeople.AddAsync(followedPeople, cancellationToken);
7575
await context.SaveChangesAsync(cancellationToken);

src/Conduit/Features/Tags/List.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task<TagsEnvelope> Handle(Query message, CancellationToken cancella
2222
.ToListAsync(cancellationToken);
2323
return new TagsEnvelope
2424
{
25-
Tags = tags?.Select(x => x.TagId ?? string.Empty).ToList() ?? new List<string>()
25+
Tags = tags?.Select(x => x.TagId ?? string.Empty).ToList() ?? new List<string>(),
2626
};
2727
}
2828
}

src/Conduit/Features/Users/Create.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ await context
7272
message.User.Password ?? throw new InvalidOperationException(),
7373
salt
7474
),
75-
Salt = salt
75+
Salt = salt,
7676
};
7777

7878
await context.Persons.AddAsync(person, cancellationToken);

src/Conduit/Infrastructure/Security/JwtTokenGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public string CreateToken(string username)
1919
JwtRegisteredClaimNames.Iat,
2020
new DateTimeOffset(_jwtOptions.IssuedAt).ToUnixTimeSeconds().ToString(),
2121
ClaimValueTypes.Integer64
22-
)
22+
),
2323
};
2424
var jwt = new JwtSecurityToken(
2525
_jwtOptions.Issuer,

src/Conduit/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
Description = "Please insert JWT with Bearer into field",
5858
Name = "Authorization",
5959
Type = SecuritySchemeType.ApiKey,
60-
BearerFormat = "JWT"
60+
BearerFormat = "JWT",
6161
}
6262
);
6363

@@ -72,11 +72,11 @@
7272
Reference = new OpenApiReference
7373
{
7474
Type = ReferenceType.SecurityScheme,
75-
Id = "Bearer"
76-
}
75+
Id = "Bearer",
76+
},
7777
},
7878
Array.Empty<string>()
79-
}
79+
},
8080
}
8181
);
8282
x.SwaggerDoc("v1", new OpenApiInfo { Title = "RealWorld API", Version = "v1" });

0 commit comments

Comments
 (0)