mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-10-14 01:49:05 +03:00
Fix mainbg not saving after apply in webui
This commit is contained in:
@@ -23,6 +23,7 @@ export const updateProfile = async (data: {
|
|||||||
stampB_R?: string;
|
stampB_R?: string;
|
||||||
stampC_R?: string;
|
stampC_R?: string;
|
||||||
stampD_R?: string;
|
stampD_R?: string;
|
||||||
|
mainbg?: string;
|
||||||
appeal_frame?: string;
|
appeal_frame?: string;
|
||||||
support_team?: string;
|
support_team?: string;
|
||||||
}) => {
|
}) => {
|
||||||
@@ -113,6 +114,11 @@ export const updateProfile = async (data: {
|
|||||||
if (!_.isNaN(validStampD_R)) update.stampD_R = validStampD_R;
|
if (!_.isNaN(validStampD_R)) update.stampD_R = validStampD_R;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.mainbg && data.mainbg.length > 0) {
|
||||||
|
const validMainbg = parseInt(data.mainbg);
|
||||||
|
if (!_.isNaN(validMainbg)) update.mainbg = validMainbg;
|
||||||
|
}
|
||||||
|
|
||||||
await DB.Update<Profile>(
|
await DB.Update<Profile>(
|
||||||
data.refid,
|
data.refid,
|
||||||
{ collection: 'profile' },
|
{ collection: 'profile' },
|
||||||
|
|||||||
Reference in New Issue
Block a user