Prevent crash by moving conn.end()

This commit is contained in:
Christopher Cookman 2023-10-31 20:39:33 -06:00
parent 82527cb46a
commit 738fbec96c
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -235,13 +235,14 @@ const generateExtensionListEmbed = async () => {
"fields": [{
"name": "Extensions",
"value": `${extensionList1}`
}]
}],
"timestamp": new Date()
}
console.log("ending conn debug")
conn.end();
resolve(res);
} catch (error) {
reject(error);
} finally {
conn.end();
}
});
};