init version

This commit is contained in:
JamesFlare1212
2025-05-09 09:04:25 -04:00
commit 5382659312
12 changed files with 1370 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// struct-staff.mjs
let staffs = new Map();
async function updateStaffMap(staffs,lParms) {
for (const staff of lParms) {
staffs.set(staff.key, staff.val)
}
}
export async function structStaffData(rawActivityData) {
let rows = rawActivityData.newRows;
for (const rowObject of rows) {
for (const field of rowObject.fields) {
if (field.fID == "staff") {
await updateStaffMap(staffs, field.lParms);
return staffs;
}
}
}
}