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