Skip to content

Commit f90ffc8

Browse files
committed
chore: fixed small issues
Signed-off-by: Uroš Marolt <uros@marolt.me>
1 parent c89889a commit f90ffc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/apps/data_sink_worker/src/bin/fix-member-attributes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ setImmediate(async () => {
155155
}
156156

157157
if (process) {
158-
const oldAttributes = data.attributes
158+
const oldAttributes = JSON.parse(JSON.stringify(data.attributes)) // Deep copy
159159
data.attributes = await mas.setAttributesDefaultValues(data.attributes)
160160

161161
let attributes: Record<string, unknown> | undefined

0 commit comments

Comments
 (0)