Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip
  • Loading branch information
martinbedouret committed Apr 23, 2018
commit 1aeab034b18d6c896897cc8b7937a709a2d2cc41
2 changes: 1 addition & 1 deletion api/controllers/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function createBoard(req, res) {
var board = new Board(req.body);
board.save(function(err, board) {
if (err) {
return res.status(500).json({
return res.status(409).json({
message: 'Error saving board',
error: err
});
Expand Down
2 changes: 1 addition & 1 deletion api/models/Board.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const boardSchema = new Schema({
},
user: {
type: String,
unique: true,
unique: false,
required: true,
trim: true
},
Expand Down