Skip to content

Commit

Permalink
Broaden find/replace
Browse files Browse the repository at this point in the history
  • Loading branch information
kfcampbell committed Feb 27, 2024
1 parent adede8c commit fb2081f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/Generate/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ private static async Task GenerateEntities(string token, string path)
foreach (var file in CodeGenerator.Generate(schema, "Octokit.GraphQL", "Octokit.GraphQL.Model"))
{
// fix for int32 overflow, see https://github.com/octokit/octokit.graphql.net/issues/311
if (file.Content.Contains("public int? DatabaseId { get; }"))
if (file.Content.Contains("int? DatabaseId { get; }"))
{
file.Content = file.Content.Replace("public int? DatabaseId { get; }", "public long? DatabaseId { get; }");
file.Content = file.Content.Replace("int? DatabaseId { get; }", "long? DatabaseId { get; }");
}
Console.WriteLine("Writing " + file.Path);
File.WriteAllText(Path.Combine(path, file.Path), file.Content);
Expand Down

0 comments on commit fb2081f

Please sign in to comment.