backend: fixed loading of routes

This commit is contained in:
muerwre 2018-12-06 14:13:36 +07:00
parent b8431abeeb
commit cc4dff0ca1
10 changed files with 73 additions and 74 deletions

View file

@ -14,10 +14,9 @@ const RouteSchema = new Schema(
logo: { type: String, default: 'DEFAULT' },
distance: { type: Number, default: 0 },
public: { type: Boolean, default: true },
created_at: { type: Date, default: Date.now() },
updated_at: { type: Date, default: Date.now() },
},
{
timestamps: { createdAt: 'created_at', updatedAt: 'updated_at' }
}
);
module.exports.RouteSchema = RouteSchema;