Skip to content

Commit

Permalink
Add missing database saves
Browse files Browse the repository at this point in the history
  • Loading branch information
Sella-GH committed Jun 7, 2024
1 parent a40de03 commit 3015183
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AzzyBot-Next/Database/DbActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public Task<bool> AddAzuraCastAsync(ulong guildId, Uri baseUrl, string apiKey, u
guild.AzuraCastSet = true;

await context.AzuraCast.AddAsync(azuraCast);
await context.Guilds.UpdateAsync(guild);

Check failure on line 63 in AzzyBot-Next/Database/DbActions.cs

View workflow job for this annotation

GitHub Actions / Build DEBUG for linux - x64

'DbSet<GuildsEntity>' does not contain a definition for 'UpdateAsync' and no accessible extension method 'UpdateAsync' accepting a first argument of type 'DbSet<GuildsEntity>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 63 in AzzyBot-Next/Database/DbActions.cs

View workflow job for this annotation

GitHub Actions / Build DEBUG for linux - arm64

'DbSet<GuildsEntity>' does not contain a definition for 'UpdateAsync' and no accessible extension method 'UpdateAsync' accepting a first argument of type 'DbSet<GuildsEntity>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 63 in AzzyBot-Next/Database/DbActions.cs

View workflow job for this annotation

GitHub Actions / Build DEBUG for win - x64

'DbSet<GuildsEntity>' does not contain a definition for 'UpdateAsync' and no accessible extension method 'UpdateAsync' accepting a first argument of type 'DbSet<GuildsEntity>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 63 in AzzyBot-Next/Database/DbActions.cs

View workflow job for this annotation

GitHub Actions / Build DEBUG for win - arm64

'DbSet<GuildsEntity>' does not contain a definition for 'UpdateAsync' and no accessible extension method 'UpdateAsync' accepting a first argument of type 'DbSet<GuildsEntity>' could be found (are you missing a using directive or an assembly reference?)
});
}

Expand Down Expand Up @@ -137,6 +138,7 @@ public Task<bool> DeleteAzuraCastAsync(ulong guildId)
guild.AzuraCastSet = false;

context.AzuraCast.Remove(azuraCast);
context.Guilds.Update(guild);
});
}

Expand Down

0 comments on commit 3015183

Please sign in to comment.