Changeset 55701f0 for pages/api/postgre
- Timestamp:
- 07/16/22 11:18:24 (2 years ago)
- Branches:
- main
- Children:
- e007fcd
- Parents:
- 433e0c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pages/api/postgre/index.js
r433e0c5 r55701f0 324 324 return ; 325 325 } 326 if (parseInt(body?.data?.amount) > 5000) { 327 res.json({ 328 success: false, 329 message: 'Failed to deposit. Insufficient credit on card.', 330 }); 331 return ; 332 } 326 333 327 334 let session = sessions.find(session => session.id === body?.session_id) … … 338 345 credits: session.credits 339 346 }) 347 348 update_sessions_to_database(); 340 349 }); 341 350 } … … 415 424 credits: session.credits 416 425 }) 426 427 update_sessions_to_database(); 417 428 }); 418 429 } … … 762 773 } 763 774 load_rooms_from_database(); 764
Note:
See TracChangeset
for help on using the changeset viewer.