Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: update import of uuid/v4
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Mar 24, 2020
1 parent 126d026 commit 2116b3c
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/agenda/schemas/agenda.schemas.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import mongoose from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'

export const AgendaSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
title: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions src/announcements/schemas/announcements.schema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import mongoose from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'

export const AnnouncementSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
content: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions src/best-albums/schemas/best-albums.schema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import mongoose from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'

export const BestAlbumSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
title: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions src/live-tours/schemas/live-tours.schema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import mongoose from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'

export const LiveToursSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
title: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions src/mottos/mottos.schema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import mongoose from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'

export const MottoSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
motto: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions src/open-sources/schemas/open-sources.schema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import mongoose from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'

export const OpenSourceSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
title: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions src/player/schemas/player.schema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import mongoose from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'

export const PlayerSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
title: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions src/sms/schemas/sms.schema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import mongoose from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'

export const SMSSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
phoneNumber: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions src/users/schemas/users.schema.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import mongoose, { HookNextFunction } from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'
import bcrypt from 'bcrypt'
import { Roles, User } from '../interfaces/user.interface'

export const UserSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
email: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions src/yancey-music/schemas/yancey-music.schema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import mongoose from 'mongoose'
import { v4 } from 'uuid'
import uuidV4 from 'uuid/v4'

export const YanceyMusicSchema = new mongoose.Schema(
{
_id: {
type: String,
default: v4,
default: uuidV4,
},
title: {
type: String,
Expand Down

0 comments on commit 2116b3c

Please sign in to comment.