From 4d83c01796e746740a0234d94b3bbe338c6f31fa Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Mon, 23 Apr 2018 06:09:47 -0700 Subject: [PATCH] fixing a botched migration --- app.moon | 5 +++-- migrations.moon | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app.moon b/app.moon index 5044a31..11a0b56 100644 --- a/app.moon +++ b/app.moon @@ -32,5 +32,6 @@ class Simplex extends Application return json: { success: true, :key } [console: "/console"]: => - console = require "lapis.console" - return console.make(env: "all")(@) + if @user and @user.admin + console = require "lapis.console" + return console.make(env: "all")(@) diff --git a/migrations.moon b/migrations.moon index 2ea05b4..9c4540b 100644 --- a/migrations.moon +++ b/migrations.moon @@ -27,6 +27,10 @@ make_migrations { create_index "tasks", "user_id" create_index "tasks", "user_id", "done" + -- botched migration [1524517478]: => settings["simplex.key-increment"] = 0 + + [1524517479]: => + settings.set "simplex.key-increment", 0 }