Add creatorId to lite market
This commit is contained in:
parent
851cffd73e
commit
84432e5ac4
|
@ -14,6 +14,7 @@ export type LiteMarket = {
|
||||||
id: string
|
id: string
|
||||||
|
|
||||||
// Attributes about the creator
|
// Attributes about the creator
|
||||||
|
creatorId: string
|
||||||
creatorUsername: string
|
creatorUsername: string
|
||||||
creatorName: string
|
creatorName: string
|
||||||
createdTime: number
|
createdTime: number
|
||||||
|
@ -75,6 +76,7 @@ export class ValidationError {
|
||||||
export function toLiteMarket(contract: Contract): LiteMarket {
|
export function toLiteMarket(contract: Contract): LiteMarket {
|
||||||
const {
|
const {
|
||||||
id,
|
id,
|
||||||
|
creatorId,
|
||||||
creatorUsername,
|
creatorUsername,
|
||||||
creatorName,
|
creatorName,
|
||||||
createdTime,
|
createdTime,
|
||||||
|
@ -108,6 +110,7 @@ export function toLiteMarket(contract: Contract): LiteMarket {
|
||||||
|
|
||||||
return removeUndefinedProps({
|
return removeUndefinedProps({
|
||||||
id,
|
id,
|
||||||
|
creatorId,
|
||||||
creatorUsername,
|
creatorUsername,
|
||||||
creatorName,
|
creatorName,
|
||||||
createdTime,
|
createdTime,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user