Caching / race issue fix, part I

pull/1492/head
Rick Carlino 2019-10-04 10:21:21 -05:00
parent f62bbf4aec
commit fad467530c
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
module PointGroups
class Destroy < Mutations::Command
STILL_IN_USE = "Can't delete group because it is in use by %{data_users}"
ARG_NAME_ID = ArgName.where(value: "point_group_id").first!.id
ARG_NAME_ID = ArgName.find_or_create_by!(value: "point_group_id").id
required do
model :device, class: Device