Skip to content

Commit

Permalink
Fix component sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Nov 12, 2021
1 parent 636e614 commit 2c4968b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static CreateSchemaDto ToRequest(this SchemaCreateModel model)
{
var isSingleton = model.IsSingleton;

var type = model.Type;
var type = model.SchemaType;

if (model.IsSingleton && type == SchemaType.Default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

namespace Squidex.CLI.Commands.Implementation.Sync.Schemas
{
public sealed class SchemaCreateModel
public class SchemaCreateModel
{
public string Name { get; set; }

public bool IsSingleton { get; set; }

public SchemaType Type { get; set; }
public SchemaType SchemaType { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@

namespace Squidex.CLI.Commands.Implementation.Sync.Schemas
{
public sealed class SchemeModel
public sealed class SchemeModel : SchemaCreateModel
{
public string Name { get; set; }

public bool IsSingleton { get; set; }

public SchemaType SchemaType { get; set; }

public SynchronizeSchemaDto Schema { get; set; }
}
}

0 comments on commit 2c4968b

Please sign in to comment.