correct error w web interface

This commit is contained in:
Paul Liverman III 2018-05-01 17:24:43 -07:00
parent e1467ac364
commit 40b3d0caf4

View File

@ -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)}