Skip to content

Commit bac29f4

Browse files
committed
use spread operator instead lodash merge
1 parent 211c9a3 commit bac29f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wren-ui/src/apollo/server/services/instructionService.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,11 @@ export class InstructionService implements IInstructionService {
117117
if (!instruction) {
118118
throw new Error('Instruction not found');
119119
}
120-
const instructionData = merge(instruction, {
120+
const instructionData = {
121+
...instruction,
121122
...input,
122123
updatedAt: new Date().toISOString(),
123-
});
124+
};
124125
const updatedInstruction = await this.instructionRepository.updateOne(
125126
input.id,
126127
instructionData,

0 commit comments

Comments
 (0)