Skip to content

Commit c7c7148

Browse files
committed
fix: table name fetched from this object
1 parent 5841169 commit c7c7148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/spacecat-shared-data-access/src/models/site-enrollment/site-enrollment.collection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class SiteEnrollmentCollection extends BaseCollection {
3535
}
3636

3737
const { data, error } = await this.postgrestService
38-
.from('site_enrollments')
38+
.from(this.tableName)
3939
.select('site_id, entitlements!inner(product_code)')
4040
.eq('entitlements.product_code', productCode);
4141

0 commit comments

Comments
 (0)