Merge branch 'dev'

This commit is contained in:
rainbow napkin 2025-11-06 19:02:19 -05:00
commit bd8a03d72f
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ Canopy
<a href="https://git.ourfore.st/rainbownapkin/canopy/issues" target="_blank"><img src="https://git.ourfore.st/rainbownapkin/canopy/badges/issues/closed.svg"></a>
<a href="https://www.gnu.org/licenses/agpl-3.0.en.html" target="_blank"><img src="https://img.shields.io/badge/License-AGPL_v3-663366.svg"></a>
0.4-INDEV Hotfix 1
0.4-INDEV Hotfix 2
=========
Canopy - /ˈkæ.nə.pi/:

View file

@ -38,7 +38,7 @@ module.exports.post = async function(req, res){
return res.send('Invalid Session! Cannot delete account while logged out!');
}
const userDB = await userModel.findOne(user);
const userDB = await userModel.findOne({user: user.user});
if(!userDB){

View file

@ -46,7 +46,7 @@ module.exports.post = async function(req, res){
const {field, change} = data;
const {user} = req.session;
const userDB = await userModel.findOne(user);
const userDB = await userModel.findOne({user: user.user});
const update = {};