Verschieden Settings hinzugefügt (inkomplett)
This commit is contained in:
@@ -6,7 +6,6 @@ import UserParamValue from '../models/type/user_param_value.js';
|
||||
|
||||
export const filterSettings = async (req, res) => {
|
||||
const { userid, type } = req.body;
|
||||
console.log(userid, type);
|
||||
try {
|
||||
const fields = await UserParamType.findAll({
|
||||
include: [
|
||||
@@ -65,7 +64,6 @@ export const updateSetting = async (req, res) => {
|
||||
if (!paramType) {
|
||||
return res.status(404).json({ error: 'Parameter type not found' });
|
||||
}
|
||||
console.log(value);
|
||||
await UserParam.upsertParam(user.id, paramType.id, value);
|
||||
res.status(200).json({ message: 'Setting updated successfully' });
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user