added place.latitude and place.longitude, fix routes
This commit is contained in:
@@ -106,7 +106,8 @@ Event.prototype.toAP = function (username, locale, to = []) {
|
||||
location: {
|
||||
name: this.place.name,
|
||||
address: this.place.address,
|
||||
details: this.place.details
|
||||
latitude: this.place.latitude,
|
||||
longitude: this.place.longitude
|
||||
},
|
||||
attachment,
|
||||
tag: tags && tags.map(tag => ({
|
||||
|
||||
@@ -11,7 +11,8 @@ Place.init({
|
||||
allowNull: false
|
||||
},
|
||||
address: DataTypes.STRING,
|
||||
details: DataTypes.JSON
|
||||
latitude: DataTypes.FLOAT,
|
||||
longitude: DataTypes.FLOAT,
|
||||
}, { sequelize, modelName: 'place' })
|
||||
|
||||
module.exports = Place
|
||||
|
||||
Reference in New Issue
Block a user