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) => @create: (values, opts) =>
while true while true
values.uuid = uuid! values.uuid = uuid!
if Keys\find uuid: values.uuid unless Keys\find uuid: values.uuid
break continue
super values, opts super values, opts