Skip to content

Commit

Permalink
Prefix Repository.Id with "repo_" and Project.Id with "prj_"
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Sep 22, 2023
1 parent 7ef471f commit ff8cdff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/Tingle.Dependabot/AppSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static async Task SetupAsync(WebApplication app, CancellationToken cancel
{
project = new Models.Management.Project
{
Id = Guid.NewGuid().ToString("n"),
Id = $"prj_{Guid.NewGuid():n}",
Created = DateTimeOffset.UtcNow,
Password = GeneratePassword(32),
Url = setup.Url.ToString(),
Expand Down
2 changes: 1 addition & 1 deletion server/Tingle.Dependabot/Workflow/Synchronizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ internal async Task SynchronizeAsync(Project project,
{
repository = new Repository
{
Id = Guid.NewGuid().ToString("n"),
Id = $"repo_{Guid.NewGuid():n}",
Created = DateTimeOffset.UtcNow,
ProjectId = project.Id,
ProviderId = providerInfo.Id,
Expand Down

0 comments on commit ff8cdff

Please sign in to comment.