fix: payment page

This commit is contained in:
Ahmed Bouhuolia
2024-09-25 12:21:26 +02:00
parent 2f9adfd908
commit 946872204b
8 changed files with 59 additions and 3 deletions

View File

@@ -25,6 +25,17 @@ export class PaymentIntegration extends Model {
return this.paymentEnabled && this.payoutEnabled;
}
static get modifiers() {
return {
/**
* Query to filter enabled payment and payout.
*/
fullEnabled(query) {
query.where('paymentEnabled', true).andWhere('payoutEnabled', true);
},
};
}
static get jsonSchema() {
return {
type: 'object',