# Problèmes de comptage des likes lors de la migration d'OSQA vers Discourse

**URL:** <https://meta.discourse.org/t/issues-in-like-count-for-osqa-migration-to-discourse/94880>\
**Category:** Development\
**Created:** [Août 16, 2018, 3:03 UTC](https://meta.discourse.org/t/issues-in-like-count-for-osqa-migration-to-discourse/94880 "2018-08-16T15:03:20Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![praveendhinwa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/praveendhinwa/32/108964_2.png) [@praveendhinwa](https://meta.discourse.org/u/praveendhinwa)\
**Post date:** [Août 21, 2018, 6:51 UTC](https://meta.discourse.org/t/issues-in-like-count-for-osqa-migration-to-discourse/94880/13 "2018-08-21T18:51:32Z")

</div>

@pgr: Thanks for letting me know your approach.

Coincidentally, I was able to resolve the issue today. I didn’t need to make changes in the database directly. I made changes in the base.rb to handle the create\_user\_actions (very similar to create\_post\_actions) and used this create\_user\_actions function to bulk migrate the likes given and received by the user. This fixed all the like related issues for me.

---

_[View the full topic](https://meta.discourse.org/t/issues-in-like-count-for-osqa-migration-to-discourse/94880)._
