mirror of
https://github.com/ION606/selmer-bot-website.git
synced 2026-06-05 23:46:14 +00:00
Fixed an async issue
This commit is contained in:
@@ -142,7 +142,7 @@ app.post('/sendData', async (req, res) => {
|
|||||||
try {
|
try {
|
||||||
const pref = JSON.parse(req.headers.serversettings);
|
const pref = JSON.parse(req.headers.serversettings);
|
||||||
|
|
||||||
connection.then((client) => {
|
connection.then(async (client) => {
|
||||||
const dbo = client.db(pref.Id).collection('SETUP');
|
const dbo = client.db(pref.Id).collection('SETUP');
|
||||||
|
|
||||||
await dbo.updateOne({ _id: 'WELCOME' }, {$set: { welcomechannel: pref.WELCOME.welcomechannel, welcomemessage: pref.WELCOME.welcomemessage }});
|
await dbo.updateOne({ _id: 'WELCOME' }, {$set: { welcomechannel: pref.WELCOME.welcomechannel, welcomemessage: pref.WELCOME.welcomemessage }});
|
||||||
|
|||||||
Reference in New Issue
Block a user