Skip to content

Commit

Permalink
Update scoring criteria to be optional in definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBCarter committed Jun 26, 2023
1 parent c405155 commit 179138f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const NftScoreDivinerConfigSchema: NftScoreDivinerConfigSchema = `${NftSc
export type NftScoreDivinerConfig = DivinerConfig<{ schema: NftScoreDivinerConfigSchema }>
export type NftScoreDivinerParams = DivinerParams<AnyConfigSchema<NftScoreDivinerConfig>>

export type NftScorePayload = Payload<NftAnalysis & { schema: NftScoreSchema }>
export type NftScorePayload = Payload<{ schema: NftScoreSchema } & Partial<Omit<NftAnalysis, 'schema'>>>

const toNftScorePayload = (rating: NftAnalysis): NftScorePayload => {
return { ...rating, schema: NftScoreSchema } as NftScorePayload
Expand Down

0 comments on commit 179138f

Please sign in to comment.