From 083bfbb42755773a3a4a6c965d87dcaf4cf6d512 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Fri, 16 Mar 2018 17:00:14 -0700 Subject: [PATCH] err in creating new keys leading to infinite loop --- models/Keys.moon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/Keys.moon b/models/Keys.moon index e08248f..192029c 100644 --- a/models/Keys.moon +++ b/models/Keys.moon @@ -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