Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Commit

Permalink
Remove immutable settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cbovis committed Aug 16, 2020
1 parent 5249d3a commit 471a267
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/model/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,22 @@ const { Schema } = mongoose;

const schema = Schema(
{
blockNumber: { immutable: true, required: true, type: Number },
blockNumber: { required: true, type: Number },
dateIngested: {
default: Date.now,
immutable: true,
required: true,
type: Date,
},
data: { required: true, type: Schema.Types.Mixed },
fillCreated: { type: Boolean },
logIndex: { immutable: true, required: true, type: Number },
protocolVersion: { immutable: true, required: true, type: Number },
logIndex: { required: true, type: Number },
protocolVersion: { required: true, type: Number },
scheduler: {
fillCreationScheduled: Boolean,
transactionFetchScheduled: Boolean,
},
transactionHash: { immutable: true, required: true, type: String },
type: { immutable: true, required: true, type: String },
transactionHash: { required: true, type: String },
type: { required: true, type: String },
},
{ strict: 'throw' },
);
Expand Down

0 comments on commit 471a267

Please sign in to comment.