aboutsummaryrefslogtreecommitdiffstats
path: root/startup.js
blob: 807604e8966ca25bdf3094fbbf2bf63b56b51878 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Can use this file to run custom scripts on startup

/*
(async () => {
  let invoice = await db.Invoice.findOne({
    where: { id: 47391 }
  });

  let payment = await db.Payment.findOne({
    where: { invoice_id: 47391 },

    include: {
      model: db.Account,
      as: "account"
    }
  });

  console.log(invoice.id, payment.id);
  try {
    await callWebhook(invoice, payment);
  } catch (e) {
    console.log("uh oh", e);
  }
})();
*/