File tree Expand file tree Collapse file tree
packages/apps/job-launcher/server/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44export enum ErrorJob {
55 NotFound = 'Job not found' ,
66 NotCreated = 'Job has not been created' ,
7- NotActiveCard = 'Credit card not found' ,
7+ NotActiveCard = 'Credit card not found. Please, add a credit card to your account. ' ,
88 ManifestNotFound = 'Manifest not found' ,
99 ManifestValidationFailed = 'Manifest validation failed' ,
1010 ResultNotFound = 'Result not found' ,
Original file line number Diff line number Diff line change @@ -878,13 +878,6 @@ export class JobService {
878878 } ) ;
879879 }
880880
881- const paymentEntity = await this . paymentService . createWithdrawalPayment (
882- user . id ,
883- totalPaymentAmount ,
884- dto . paymentCurrency ,
885- paymentCurrencyRate ,
886- ) ;
887-
888881 const { createManifest } = this . createJobSpecificActions [ requestType ] ;
889882
890883 let jobEntity = new JobEntity ( ) ;
@@ -923,6 +916,13 @@ export class JobService {
923916 jobEntity . manifestHash = hash ;
924917 }
925918
919+ const paymentEntity = await this . paymentService . createWithdrawalPayment (
920+ user . id ,
921+ totalPaymentAmount ,
922+ dto . paymentCurrency ,
923+ paymentCurrencyRate ,
924+ ) ;
925+
926926 jobEntity . chainId = chainId ;
927927 jobEntity . reputationOracle = reputationOracle ;
928928 jobEntity . exchangeOracle = exchangeOracle ;
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ export class WhitelistService {
66 constructor ( private readonly whitelistRepository : WhitelistRepository ) { }
77
88 async isUserWhitelisted ( userId : number ) : Promise < boolean > {
9- // TODO: Enable it when billing system is active
10- return true ;
119 const user = await this . whitelistRepository . findOneByUserId ( userId ) ;
1210 return ! ! user ;
1311 }
You can’t perform that action at this time.
0 commit comments