aboutsummaryrefslogtreecommitdiffstats
path: root/startup.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-18 20:14:32 +0000
committerAdam Soltys <[email protected]>2021-08-18 20:14:32 +0000
commit56459025774a80fc66d56841fcdabd8cd214ba21 (patch)
tree6571b104f7783a3e704bea5d1e0fe631378ed820 /startup.js
parentf2dad8ba2a169d9db1ced652c4ebee407b3c6609 (diff)
parentd4bdd2e4bdfaeed38fb6007b337b32d494b3997c (diff)
downloadcoinos-server-56459025774a80fc66d56841fcdabd8cd214ba21.tar.gz
coinos-server-56459025774a80fc66d56841fcdabd8cd214ba21.zip
Merge branch 'master' of https://github.com/coinos/coinos-server
Diffstat (limited to 'startup.js')
-rw-r--r--startup.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/startup.js b/startup.js
new file mode 100644
index 00000000..807604e8
--- /dev/null
+++ b/startup.js
@@ -0,0 +1,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);
+ }
+})();
+*/