Skip to content

Commit 76370f2

Browse files
committed
x
1 parent 792b342 commit 76370f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/modules/vaults/repositories/update.repository.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,12 @@ export class UpdateVaultRepository implements IUpdateVaultRepository {
2525
await this.database
2626
.collection('documents')
2727
.updateMany({ 'vault._id': _id }, { $set: { 'vault.label': document['name'] } }, this.options)
28+
29+
for (const element of document['racks']) {
30+
const res = await this.database
31+
.collection('documents')
32+
.updateMany({ 'rack._id': element.code }, { $set: { 'rack.label': element.name } }, this.options)
33+
console.log(res, element)
34+
}
2835
}
2936
}

0 commit comments

Comments
 (0)