diff --git a/cli/Squidex.CLI/Squidex.CLI/Commands/App_Backup.cs b/cli/Squidex.CLI/Squidex.CLI/Commands/App_Backup.cs index e10762b0..29d56155 100644 --- a/cli/Squidex.CLI/Squidex.CLI/Commands/App_Backup.cs +++ b/cli/Squidex.CLI/Squidex.CLI/Commands/App_Backup.cs @@ -46,8 +46,8 @@ public async Task Create(CreateArguments arguments) { while (!tcs.Token.IsCancellationRequested) { - var backups = await backupsClient.GetJobsAsync(app); - var backup = backups.FirstOrDefault(x => x.Started >= backupStarted); + var backups = await backupsClient.GetBackupsAsync(app); + var backup = backups.Items.FirstOrDefault(x => x.Started >= backupStarted); if (backup != null && backup.Stopped.HasValue) { diff --git a/cli/Squidex.CLI/Squidex.CLI/Commands/App_Schemas.cs b/cli/Squidex.CLI/Squidex.CLI/Commands/App_Schemas.cs index 9eac0528..09b26302 100644 --- a/cli/Squidex.CLI/Squidex.CLI/Commands/App_Schemas.cs +++ b/cli/Squidex.CLI/Squidex.CLI/Commands/App_Schemas.cs @@ -20,6 +20,8 @@ using Squidex.ClientLibrary; using Squidex.ClientLibrary.Management; +#pragma warning disable IDE0059 // Value assigned to symbol is never used + namespace Squidex.CLI.Commands { public partial class App @@ -43,7 +45,7 @@ public async Task List(ListArguments arguments) { var table = new ConsoleTable("Id", "Name", "Published", "LastUpdate"); - foreach (var schema in schemas) + foreach (var schema in schemas.Items) { table.AddRow(schema.Id, schema.Name, schema.IsPublished, schema.LastModified); } @@ -68,7 +70,7 @@ public async Task Get(GetArguments arguments) { var allSchemas = await schemasClient.GetSchemasAsync(app); - var result = new SchemaWithRefs(schema).EnrichSchemaNames(allSchemas); + var result = new SchemaWithRefs(schema).EnrichSchemaNames(allSchemas.Items); Console.WriteLine(result.JsonPrettyString()); } @@ -134,7 +136,7 @@ public async Task Sync(SyncArguments arguments) { var allSchemas = await schemasClient.GetSchemasAsync(app); - request.AdjustReferences(allSchemas); + request.AdjustReferences(allSchemas.Items); } request.Schema.Name = schemaName; @@ -151,7 +153,7 @@ public async Task Sync(SyncArguments arguments) { var allSchemas = await schemasClient.GetSchemasAsync(app); - request.AdjustReferences(allSchemas); + request.AdjustReferences(allSchemas.Items); } request.Schema.NoFieldDeletion = arguments.NoFieldDeletion; diff --git a/cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj b/cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj index 65533893..b8336b36 100644 --- a/cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj +++ b/cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj @@ -14,7 +14,7 @@ - + diff --git a/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Squidex.ClientLibrary.csproj b/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Squidex.ClientLibrary.csproj index b27cdac8..080ebd84 100644 --- a/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Squidex.ClientLibrary.csproj +++ b/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Squidex.ClientLibrary.csproj @@ -10,7 +10,7 @@ https://raw.githubusercontent.com/Squidex/squidex/master/media/logo-squared.png https://github.com/Squidex/squidex/blob/master/LICENSE.txt https://github.com/Squidex/squidex/ - 3.0-beta1 + 3.0 true