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 dec9cf4.|0.0.134
[motion.git]
/
server
/
models
/
openchannel_message.js
diff --git
a/server/models/openchannel_message.js
b/server/models/openchannel_message.js
index
06613a8
..
5a25920
100644
(file)
--- a/
server/models/openchannel_message.js
+++ b/
server/models/openchannel_message.js
@@
-8,7
+8,12
@@
module.exports = function(sequelize, DataTypes) {
to: {
type: DataTypes.STRING
},
- body: DataTypes.TEXT,
+ body: {
+ type: DataTypes.BLOB,
+ get: function() {
+ return this.getDataValue('body').toString();
+ }
+ },
status: {
type: DataTypes.STRING,
defaultValue: 'SENDING'