Skip to content

Commit

Permalink
Merge pull request #21 from onix-labs/bugfix/resolvables
Browse files Browse the repository at this point in the history
bugfix/resolvables
  • Loading branch information
MrMatthewLayton authored Aug 19, 2022
2 parents bbe7184 + 28641f4 commit 2913eeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=onixlabs-corda-core
group=io.onixlabs
version=4.0.2
version=4.0.3
onixlabs.development.jarsign.keystore=../lib/onixlabs.development.pkcs12
onixlabs.development.jarsign.password=5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ data class Customer(

private class RewardResolver(private val customer: Customer) : AbstractPluralResolvable<Reward>() {

@Transient
override val criteria: QueryCriteria = vaultQuery<Reward> {
override val criteria: QueryCriteria get() = vaultQuery<Reward> {
expression(RewardEntity::owner equalTo customer.owner)
expression(RewardEntity::customerLinearId equalTo customer.linearId.id)
expression(RewardEntity::customerExternalId equalTo customer.linearId.externalId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ data class Reward(

private class CustomerResolver(private val reward: Reward) : AbstractSingularResolvable<Customer>() {

@Transient
override val criteria: QueryCriteria = vaultQuery<Customer> {
override val criteria: QueryCriteria get() = vaultQuery<Customer> {
relevancyStatus(Vault.RelevancyStatus.ALL)
linearIds(reward.customerLinearId)
}
Expand Down

0 comments on commit 2913eeb

Please sign in to comment.