Skip to content

Commit 75e3b2c

Browse files
committed
Set serveSecure on Project model in API and client
1 parent d3cad58 commit 75e3b2c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

client/modules/IDE/reducers/project.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ const project = (state, action) => {
2525
id: action.project.id,
2626
name: action.project.name,
2727
updatedAt: action.project.updatedAt,
28+
serveSecure: action.project.serveSecure,
2829
owner: action.owner
2930
};
3031
case ActionTypes.SET_PROJECT:
3132
return {
3233
id: action.project.id,
3334
name: action.project.name,
3435
updatedAt: action.project.updatedAt,
36+
serveSecure: action.project.serveSecure,
3537
owner: action.owner
3638
};
3739
case ActionTypes.RESET_PROJECT:

server/models/project.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ fileSchema.set('toJSON', {
2323
const projectSchema = new Schema({
2424
name: { type: String, default: "Hello p5.js, it's the server" },
2525
user: { type: Schema.Types.ObjectId, ref: 'User' },
26+
serveSecure: { type: Boolean, default: false },
2627
files: { type: [fileSchema] },
2728
_id: { type: String, default: shortid.generate }
2829
}, { timestamps: true });

0 commit comments

Comments
 (0)