diff --git a/src/main/java/dev/kons/kuenyawz/repositories/PurchaseSpec.java b/src/main/java/dev/kons/kuenyawz/repositories/PurchaseSpec.java index 953058cc..b7d79b64 100644 --- a/src/main/java/dev/kons/kuenyawz/repositories/PurchaseSpec.java +++ b/src/main/java/dev/kons/kuenyawz/repositories/PurchaseSpec.java @@ -80,7 +80,7 @@ public static Specification withPaymentType(PaymentType paymentType) { if (paymentType == null) return null; - return cb.equal(root.get("paymentType"), paymentType.getType()); + return cb.equal(root.get("paymentType"), paymentType); }; }