Browse Source

Change name to slug

sbkwgh 8 năm trước cách đây
mục cha
commit
74aec723c3
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      models/thread.js

+ 1 - 0
models/thread.js

@@ -39,6 +39,7 @@ module.exports = (sequelize, DataTypes) => {
 						order,
 						limit: limit,
 						include: [
+							{ model: models.Thread, attributes: ['slug'] }, 
 							{ model: models.User, attributes: ['username', 'createdAt', 'id', 'color'] }, 
 							{
 								model: models.Post, as: 'Replies', include: