Skip to content

Commit 9081a88

Browse files
committed
reset created & updated at for cloned scorecards
1 parent cc940f8 commit 9081a88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/api/scorecard/scorecard.service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,20 @@ export class ScoreCardService {
217217
const cloneGroups = original.scorecardGroups.map((group: ScorecardGroupBaseDto) => ({
218218
...group,
219219
id: undefined,
220+
createdAt: undefined,
221+
updatedAt: undefined,
220222
scorecardId: undefined,
221223
sections: group.sections.map((section: ScorecardSectionBaseDto) => ({
222224
...section,
223225
id: undefined,
226+
createdAt: undefined,
227+
updatedAt: undefined,
224228
scorecardGroupId: undefined,
225229
questions: section.questions.map((question: ScorecardQuestionBaseDto) => ({
226230
...question,
227231
id: undefined,
232+
createdAt: undefined,
233+
updatedAt: undefined,
228234
sectionId: undefined,
229235
scorecardSectionId: undefined,
230236
})),

0 commit comments

Comments
 (0)