attempting to correct automatic key generation
This commit is contained in:
parent
1b55d56b43
commit
548758abf5
4
app.moon
4
app.moon
@ -17,8 +17,8 @@ class extends Application
|
||||
@keys = Keys\find user_id: @user.id
|
||||
@tasks = Tasks\find user_id: @user.id -- TODO convert to paginated
|
||||
|
||||
unless #@keys > 0
|
||||
table.insert @keys, Keys\create user_id: @user.id
|
||||
unless @keys and #@keys > 0
|
||||
@keys = {Keys\create user_id: @user.id}
|
||||
|
||||
return render: "index.logged_in"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user