err in creating new keys leading to infinite loop

This commit is contained in:
Paul Liverman III 2018-03-16 17:00:14 -07:00
parent 548758abf5
commit 083bfbb427

View File

@ -17,6 +17,6 @@ class Keys extends Model
@create: (values, opts) =>
while true
values.uuid = uuid!
if Keys\find uuid: values.uuid
break
unless Keys\find uuid: values.uuid
continue
super values, opts