git://repos.xcallymotion.com
/
motion.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Built motion from commit b33b832.|1.0.17
[motion.git]
/
server
/
models
/
sms_account.js
diff --git
a/server/models/sms_account.js
b/server/models/sms_account.js
index
a026858
..
456e031
100644
(file)
--- a/
server/models/sms_account.js
+++ b/
server/models/sms_account.js
@@
-26,7
+26,7
@@
module.exports = function(sequelize, DataTypes) {
},
phone: {
type: DataTypes.STRING,
- unique: true,
+ unique: 'phone',
validate: {
is: /^[\+]?[0-9]+$/
}