Explorar o código

Change name to slug

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
74aec723c3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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: