From 84432e5ac470edd3e7d1d0ed47c3c69eee6b4fe7 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Mon, 29 Aug 2022 14:25:58 -0500 Subject: [PATCH] Add creatorId to lite market --- web/pages/api/v0/_types.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/pages/api/v0/_types.ts b/web/pages/api/v0/_types.ts index 968b770e..3aa15901 100644 --- a/web/pages/api/v0/_types.ts +++ b/web/pages/api/v0/_types.ts @@ -14,6 +14,7 @@ export type LiteMarket = { id: string // Attributes about the creator + creatorId: string creatorUsername: string creatorName: string createdTime: number @@ -75,6 +76,7 @@ export class ValidationError { export function toLiteMarket(contract: Contract): LiteMarket { const { id, + creatorId, creatorUsername, creatorName, createdTime, @@ -108,6 +110,7 @@ export function toLiteMarket(contract: Contract): LiteMarket { return removeUndefinedProps({ id, + creatorId, creatorUsername, creatorName, createdTime,