mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
assets and tier plans revamp
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -64,7 +64,7 @@ async function resolveCourseUserIds(courseUuid) {
|
||||
holders.forEach((h) => userIds.add(String(h.user_id)));
|
||||
}
|
||||
|
||||
const product = await mdl_Product.findOne({ where: { course_id: course.course_id } });
|
||||
const product = await mdl_Product.findOne({ where: { purchasable_type: 'course', purchasable_id: course.course_id } });
|
||||
if (product) {
|
||||
const purchasers = await mdl_CoursePurchase.findAll({
|
||||
attributes: ['user_id'],
|
||||
|
||||
Reference in New Issue
Block a user