Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Copilot payments: Fix the schema #55

Closed
jmgasper opened this issue Aug 20, 2018 · 0 comments
Closed

Copilot payments: Fix the schema #55

jmgasper opened this issue Aug 20, 2018 · 0 comments

Comments

@jmgasper
Copy link
Collaborator

jmgasper commented Aug 20, 2018

From the recent review:

 const schema = new mongoose.Schema({
  project: { type: String, required: true },
  amount: { type: Number, required: true },
  description: { type: String, required: true },
  challenge: { type: Number, required: true },
  closed: { type: String, required: true, default: "false" },
}, {

You also need to persist challenge id as part of the model as per spec. challenge should be renamed challengeId

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant