Skip to content

Commit

Permalink
Fix duplicate key error
Browse files Browse the repository at this point in the history
  • Loading branch information
tpillard committed Jan 13, 2013
1 parent 81b712f commit 44a5c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schemas/Publishers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var PublisherWebsite = new Schema({
name: { type: String, required: true},
url : { type : String, match : /((http:\/\/|https:\/\/)?(www.)?(([a-zA-Z0-9-]){2,}\.){1,4}([a-zA-Z]){2,6}(\/([a-zA-Z-_\/\.0-9#:?=&;,]*)?)?)/, required: true, unique: true },
name: { type: String},
url : { type : String, match : /((http:\/\/|https:\/\/)?(www.)?(([a-zA-Z0-9-]){2,}\.){1,4}([a-zA-Z]){2,6}(\/([a-zA-Z-_\/\.0-9#:?=&;,]*)?)?)/},
description : { type : String },
category : { type : String },
validated : { type : Boolean, default: false },
Expand Down

0 comments on commit 44a5c5e

Please sign in to comment.