Skip to content

Commit 71b01ab

Browse files
author
Ryan Kotzen
committed
fixing bug where creation and update were duplicated.
1 parent f98f6b4 commit 71b01ab

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/routes/users/items/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
var _ = require('lodash');
33
var schema = require('./item.json');
44
var outputSchema = _.merge({}, schema, require('./item-output.json'));
5-
var inputSchema = buildInputSchema();
65
var router = require('../../../crud/router')({
76
schemas: {
87
core: schema,
98
output: outputSchema,
10-
creation: inputSchema,
11-
update: inputSchema
9+
creation: buildInputSchema(),
10+
update: buildInputSchema()
1211
}
1312
});
1413
router.crudMiddleware = require('../../../mongo/crud')(router.metadata);

0 commit comments

Comments
 (0)