Skip to content

Commit

Permalink
EDITOR-NTUEELightDance#94 fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
justhowww committed Feb 13, 2022
1 parent d5aa881 commit f8a988e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editor-server/src/resolvers/controlMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ export class EditControlMapResolver {
id: generateID(),
}).save();

Promise.all(
controlData.map((dancerParts: any) => {
await Promise.all(
controlData.map(async (dancerParts: any) => {
// data for one of the dancers
const { dancerName, controlData } = dancerParts;
controlData.map(async (partData: any) => {
await Promise.all(controlData.map(async (partData: any) => {
// for the part of a certain dancer, create a new control of the part with designated value
const value = await examineType(partData, ctx);
let newControl = await new ctx.db.Control({
Expand All @@ -180,7 +180,7 @@ export class EditControlMapResolver {
}
);
await newControl.save();
});
}))
})
);

Expand Down

0 comments on commit f8a988e

Please sign in to comment.