mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 09:12:05 +00:00
Polling log
This commit is contained in:
parent
6e415ce7f2
commit
6978fb06dd
@ -80,6 +80,7 @@ export default async function handler(req, res) {
|
|||||||
let attempts = 0;
|
let attempts = 0;
|
||||||
const pollInterval = setInterval(async () => {
|
const pollInterval = setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
|
console.log('Polling for invoice', attempts);
|
||||||
const pollResponse = await axios.get(`${BACKEND_URL}/api/invoices/polling`, {
|
const pollResponse = await axios.get(`${BACKEND_URL}/api/invoices/polling`, {
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': PLEBDEVS_API_KEY
|
'Authorization': PLEBDEVS_API_KEY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user