mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-06-11 01:40:45 -05:00
IIDX: Added grade badge save
This commit is contained in:
parent
064838bca9
commit
425b8962ee
|
|
@ -904,7 +904,7 @@ export const pcget: EPR = async (info, data, send) => {
|
|||
***/
|
||||
|
||||
if (version >= 30 && badge.length > 0) {
|
||||
let djLevel, clear, visitor, notes_radar, event1;
|
||||
let djLevel, clear, grade, visitor, notes_radar, event1;
|
||||
djLevel = badge.filter((res) => res.category_name === "djLevel");
|
||||
djLevel.forEach((res) => {
|
||||
bArray.push({
|
||||
|
|
@ -922,6 +922,15 @@ export const pcget: EPR = async (info, data, send) => {
|
|||
flg: res.flg,
|
||||
});
|
||||
});
|
||||
|
||||
grade = badge.filter((res) => res.category_name === "grade");
|
||||
grade.forEach((res) => {
|
||||
bArray.push({
|
||||
id: 2,
|
||||
flg_id: res.flg_id,
|
||||
flg: res.flg,
|
||||
});
|
||||
});
|
||||
|
||||
// this keep sending back on save //
|
||||
// possibly wrong category_id but at least doesn't show as new badges //
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user