Skip to content

Commit 3f1b866

Browse files
committed
fix
1 parent 8cc9cb4 commit 3f1b866

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/cards/FilledProperty.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FilledPropertyService implements IFilledPropertyService {
3232

3333
const createdProperty = await FilledProperty.create(filledPropertyData)
3434

35-
if (isDataObject) fillRelatedData(createdProperty, Number(cardId))
35+
if (isDataObject) await fillRelatedData(createdProperty, Number(cardId))
3636

3737
await FilledPropertyCard.create({ filledPropertyId: createdProperty.id, cardId: Number(cardId) })
3838

@@ -72,7 +72,7 @@ class FilledPropertyService implements IFilledPropertyService {
7272

7373
await updatedProperty.save()
7474

75-
fillRelatedData(updatedProperty)
75+
await fillRelatedData(updatedProperty)
7676

7777
return { detail: updatedProperty, status: 200 }
7878
} catch (e) {
@@ -92,7 +92,7 @@ class FilledPropertyService implements IFilledPropertyService {
9292
)
9393

9494
for (const el of updatedProperties) {
95-
fillRelatedData(el)
95+
await fillRelatedData(el)
9696
}
9797

9898
return { detail: updatedProperties, status: 200 }

0 commit comments

Comments
 (0)