bitcointranscripts / transcription-review-backend

7 stars 11 forks source link

refactor: lightning payment controller #300

Closed Extheoisah closed 3 months ago

Extheoisah commented 3 months ago

This pr adds the following:

  1. adds an extra validation check for successful and failed lightning payments using the data returned from the lnd node.
  2. introduces the use of sequelize db transactions to ensure the integrity of the data depending of the outcome of the invoice payment
  3. adds a new invoice column to the transaction table to store debit payment ln invoices for easy payment tracking.
  4. adds a script called create-migration to the Makefile so its easier to create new migrations for the database schema changes.