chore: Remove all usage of collection.type (#1445)

* chore: Remove all usage of collection.type

* migration: Remove type column
This commit is contained in:
Tom Moor
2020-08-12 10:49:02 -07:00
committed by GitHub
parent 810dc5a061
commit d055021ad4
11 changed files with 20 additions and 30 deletions

View File

@@ -30,7 +30,7 @@ const { authorize } = policy;
const router = new Router();
router.post("collections.create", auth(), async (ctx) => {
const { name, color, description, icon, type } = ctx.body;
const { name, color, description, icon } = ctx.body;
const isPrivate = ctx.body.private;
ctx.assertPresent(name, "name is required");
@@ -46,7 +46,6 @@ router.post("collections.create", auth(), async (ctx) => {
description,
icon,
color,
type: type || "atlas",
teamId: user.teamId,
creatorId: user.id,
private: isPrivate,