Skip to content

Commit 5fd40e9

Browse files
authored
Merge pull request #299 from hypercerts-org/bugfix/collection-not-updated-correctly
fix(CollectionEntityService): parse chain_id as number in collection …
2 parents 2537a1e + 219e169 commit 5fd40e9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/services/database/entities/CollectionEntityService.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,13 @@ export class CollectionService {
170170
"users.avatar",
171171
])
172172
.where("collection_admins.collection_id", "=", collectionId)
173-
.execute();
173+
.execute()
174+
.then((res) =>
175+
res.map((x) => ({
176+
...x,
177+
chain_id: Number(x.chain_id),
178+
})),
179+
);
174180
}
175181

176182
/**

0 commit comments

Comments
 (0)