From 63fc10e1e09b817f635f157b2e429761ac60b9a4 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 25 Jun 2020 22:35:52 +0100 Subject: [PATCH] tidy up --- .../nav/ModelSetupNav/ModelFieldEditor.svelte | 12 ------------ packages/server/src/api/controllers/model.js | 1 - 2 files changed, 13 deletions(-) diff --git a/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte b/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte index 37e8e8ce7a..e5e7528333 100644 --- a/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte +++ b/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte @@ -22,18 +22,6 @@ field.constraints && field.constraints.presence && !constraints.presence.allowEmpty - - // function attachModelIdToSchema(evt) { - // const { draftModel } = $backendUiStore - // if ($backendUiStore.selectedField !== evt.target.value) { - // delete draftModel.schema[$backendUiStore.selectedField] - // draftModel.schema[evt.target.value] = field - // backendUiStore.update(state => { - // state.selectedField = evt.target.value - // return state - // }) - // } - // }
diff --git a/packages/server/src/api/controllers/model.js b/packages/server/src/api/controllers/model.js index 7afc422be5..58b7f65811 100644 --- a/packages/server/src/api/controllers/model.js +++ b/packages/server/src/api/controllers/model.js @@ -1,6 +1,5 @@ const CouchDB = require("../../db") const newid = require("../../db/newid") -const { rename } = require("fs-extra") exports.fetch = async function(ctx) { const db = new CouchDB(ctx.user.instanceId)