Skip to content

Commit

Permalink
feat(#391): Add status enumerated import
Browse files Browse the repository at this point in the history
  • Loading branch information
tholulomo committed Jun 6, 2023
1 parent 00a5067 commit 69bff6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resfulservice/src/models/datasetId.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const mongoose = require('mongoose');
const { DatasetStatusOpt, DatasetStatusDefault } = require('../../config/constant');
const Schema = mongoose.Schema;

const datasetIdSchema = new Schema({
Expand All @@ -9,8 +10,8 @@ const datasetIdSchema = new Schema({
},
status: {
type: String,
enum: ['APPROVED', 'UNDER_REVIEW', 'WORK_IN_PROGRESS'],
default: 'WORK_IN_PROGRESS'
enum: DatasetStatusOpt,
default: DatasetStatusDefault
},
samples: [{
type: Schema.Types.ObjectId,
Expand Down

0 comments on commit 69bff6c

Please sign in to comment.