Fix dal connection type assertion lapsus

This commit is contained in:
Tomaž Jerman
2022-05-31 13:20:57 +02:00
parent c6b26c4e32
commit 9bed03a95f
+1 -1
View File
@@ -93,7 +93,7 @@ func (svc *dalConnection) Create(ctx context.Context, new *types.DalConnection)
// validation
{
if new.Type != types.DalPrimaryConnectionResourceType {
if new.Type != types.DalConnectionResourceType {
// @todo error
err = fmt.Errorf("cannot create connection: unsupported connection type %s", new.Type)
return