Skip to content

Commit 219e169

Browse files
committed
fix(CollectionEntityService): parse chain_id as number in collection query results
1 parent 2537a1e commit 219e169

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)