Skip to content

Commit

Permalink
👄 lint + prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alonronin committed Apr 3, 2019
1 parent bcec809 commit ee36bf4
Show file tree
Hide file tree
Showing 2 changed files with 703 additions and 701 deletions.
8 changes: 4 additions & 4 deletions ___tests___/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import { Schema } from 'mongoose';
import ObjectId = Schema.Types.ObjectId;

export interface IUser extends mongoose.Document {
name: string;
email: string;
created: Date;
email: string;
foreignKey: ObjectId;
name: string;
saveCount: number;
foreignKey: ObjectId,
}

const schema = new Schema({
created: { type: Date, default: Date.now },
email: { type: String, required: true },
foreignKey: ObjectId,
name: String,
saveCount: { type: Number, default: 0 },
foreignKey: ObjectId
});

schema.pre('save', function() {
Expand Down
Loading

0 comments on commit ee36bf4

Please sign in to comment.