Skip to content

Commit a45f6bf

Browse files
committed
fix: bookmarks without created/updated details
1 parent 6846d5f commit a45f6bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrations/bookmarks/migrateBookmarksToLinks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ console.log('Migrate project.bookmarks to project.attachments for all projects i
1717
*/
1818
const getProjectsWithBookmarks = () => models.Project.findAll({
1919
raw: false,
20-
attributes: ['id', 'bookmarks'],
20+
attributes: ['id', 'bookmarks', 'createdAt', 'createdBy', 'updatedAt', 'updatedBy'],
2121
where: sequelize.where(
2222
sequelize.fn('json_array_length', sequelize.col('bookmarks')),
2323
{ [sequelize.Op.gt]: 0 },

0 commit comments

Comments
 (0)