Skip to content

Commit

Permalink
refactor: dto 및 스킴의 ObjectId 타입 > string
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed Apr 10, 2024
1 parent 5897976 commit 5fa2f8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/group/dto/create-group.dto.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ApiProperty } from '@nestjs/swagger';
import { ObjectId } from 'mongoose';

export class CreateGroupDto {
@ApiProperty({
Expand Down Expand Up @@ -31,7 +30,7 @@ export class CreateGroupDto {
})
readonly subManagers: [
{
user: ObjectId;
user: string;
authorities: string[];
},
];
Expand Down
5 changes: 1 addition & 4 deletions src/group/schemas/group.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import * as mongoose from 'mongoose';
export const GroupSchema = new mongoose.Schema({
name: String,
description: String,
manager: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
},
manager: String,
subManagers: [
{
user: String,
Expand Down

0 comments on commit 5fa2f8d

Please sign in to comment.