Skip to content

Commit 796a04b

Browse files
authored
chore(backend): fix typo in device relationships (edgehog-device-manager#1226)
The name given to the relationships the device resource has with other resources contained a typo. This change sets the valid name. Signed-off-by: Davide Briani <davide.briani@secomind.com>
1 parent db679ce commit 796a04b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

backend/lib/edgehog/devices/device/device.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# This file is part of Edgehog.
33
#
4-
# Copyright 2022-2025 SECO Mind Srl
4+
# Copyright 2022-2026 SECO Mind Srl
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -507,11 +507,11 @@ defmodule Edgehog.Devices.Device do
507507
public? true
508508
end
509509

510-
has_many :container_deplomyents, Edgehog.Containers.Container.Deployment
511-
has_many :network_deplomyents, Edgehog.Containers.Network.Deployment
512-
has_many :volume_deplomyents, Edgehog.Containers.Volume.Deployment
513-
has_many :image_deplomyents, Edgehog.Containers.Image.Deployment
514-
has_many :device_mapping_deplomyents, Edgehog.Containers.DeviceMapping.Deployment
510+
has_many :container_deployments, Edgehog.Containers.Container.Deployment
511+
has_many :network_deployments, Edgehog.Containers.Network.Deployment
512+
has_many :volume_deployments, Edgehog.Containers.Volume.Deployment
513+
has_many :image_deployments, Edgehog.Containers.Image.Deployment
514+
has_many :device_mapping_deployments, Edgehog.Containers.DeviceMapping.Deployment
515515

516516
many_to_many :application_releases, Release do
517517
through Deployment

0 commit comments

Comments
 (0)