correct error w web interface
This commit is contained in:
parent
e1467ac364
commit
40b3d0caf4
4
app.moon
4
app.moon
@ -25,8 +25,8 @@ class Simplex extends Application
|
||||
|
||||
[index: "/"]: =>
|
||||
if @user
|
||||
@keys = APIKeys\select "WHERE user_id = ? ORDER BY id ASC", @user.id
|
||||
@tasks = Tasks\select "WHERE user_id = ? ORDER BY id ASC", @user.id
|
||||
@keys = APIKeys\select "WHERE user_id = ? ORDER BY created_at ASC", @user.id
|
||||
@tasks = Tasks\select "WHERE user_id = ? ORDER BY created_at ASC", @user.id
|
||||
|
||||
unless @keys and #@keys > 0
|
||||
@keys = {APIKeys\create(@user)}
|
||||
|
Loading…
Reference in New Issue
Block a user