File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
WooCommerce/src/main/kotlin/com/woocommerce/android/ui/woopos/common/data
libs/fluxc-plugin/src/main/kotlin/org/wordpress/android/fluxc/persistence/dao/pos Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class WooPosVariationMapper @Inject constructor(
7474 }
7575
7676 @Suppress(" SwallowedException" )
77- fun fromWCPosVariationModel (model : WooPosVariationEntity ): WooPosVariation {
77+ fun fromWooPosVariationEntity (model : WooPosVariationEntity ): WooPosVariation {
7878 val attributesList = parseAttributesJson(model.attributesJson)
7979
8080 return WooPosVariation (
@@ -163,7 +163,7 @@ fun WCProductVariationModel.toWooPosVariation(mapper: WooPosVariationMapper): Wo
163163 mapper.fromWCProductVariationModel(this )
164164
165165fun WooPosVariationEntity.toWooPosVariation (mapper : WooPosVariationMapper ): WooPosVariation =
166- mapper.fromWCPosVariationModel (this )
166+ mapper.fromWooPosVariationEntity (this )
167167
168168fun WooPosVariation.getNameForPOS (
169169 mapper : WooPosVariationMapper ,
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ import org.wordpress.android.fluxc.persistence.entity.pos.WooPosVariationEntity
1212abstract class WooPosVariationsDao {
1313
1414 @Query(" SELECT * FROM PosVariationEntity WHERE localSiteId = :localSiteId AND remoteProductId = :productId ORDER BY variationName ASC" )
15- abstract fun observeVariationsForProduct (localSiteId : LocalId , productId : RemoteId ): Flow <List <WooPosVariationEntity >>
15+ abstract fun observeVariationsForProduct (
16+ localSiteId : LocalId ,
17+ productId : RemoteId
18+ ): Flow <List <WooPosVariationEntity >>
1619
1720 @Query(" SELECT * FROM PosVariationEntity WHERE localSiteId = :localSiteId AND remoteProductId = :productId AND remoteVariationId = :variationId" )
1821 abstract suspend fun getVariation (
You can’t perform that action at this time.
0 commit comments