mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-21 16:56:51 +02:00
chore: update mongoose dep
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import * as mongoose from "mongoose";
|
||||
const { model } = mongoose;
|
||||
import { model } from "mongoose";
|
||||
|
||||
import { IConferenceDocument, IConferenceModel } from "./conferences.types";
|
||||
import ConferenceSchema from "./conferences.schema";
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import * as mongoose from "mongoose";
|
||||
const { Schema } = mongoose;
|
||||
import { Schema } from "mongoose";
|
||||
|
||||
const RepositorySchema = new Schema({
|
||||
name: String,
|
||||
@@ -11,11 +10,11 @@ const RepositorySchema = new Schema({
|
||||
startDate: Date,
|
||||
endDate: Date,
|
||||
status: String,
|
||||
owners: { type: [mongoose.Schema.Types.ObjectId] },
|
||||
owners: { type: [Schema.Types.ObjectId] },
|
||||
repositories: {
|
||||
type: [
|
||||
{
|
||||
id: { type: mongoose.Schema.Types.ObjectId },
|
||||
id: { type: Schema.Types.ObjectId },
|
||||
addDate: { type: Date },
|
||||
removeDate: { type: Date },
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as mongoose from "mongoose";
|
||||
import { Document, Model } from "mongoose";
|
||||
import { ConferenceStatus } from "../../types";
|
||||
|
||||
export interface IConference {
|
||||
@@ -45,5 +45,5 @@ export interface IConference {
|
||||
};
|
||||
}
|
||||
|
||||
export interface IConferenceDocument extends IConference, mongoose.Document {}
|
||||
export interface IConferenceModel extends mongoose.Model<IConferenceDocument> {}
|
||||
export interface IConferenceDocument extends IConference, Document {}
|
||||
export interface IConferenceModel extends Model<IConferenceDocument> {}
|
||||
|
||||
Reference in New Issue
Block a user