Skip to content

Commit

Permalink
minor user model fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherlemious committed Oct 6, 2024
1 parent cf09010 commit ecb60df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/src/database/models/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const userSchema = new mongoose.Schema(
type: Number,
},
previous_work: {
type: String,
type: [String],
},
website: {
type: String,
Expand All @@ -53,7 +53,7 @@ const userSchema = new mongoose.Schema(
type: String,
},
company_profile: {
type: String,
type: [String],
},
name: {
type: String,
Expand Down
4 changes: 2 additions & 2 deletions backend/src/types/User.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export interface UserType {

// Tour guide
years_of_experience?: number;
previous_work?: string;
previous_work?: [string];
// Advertiser
website?: string;
hotline?: string;
company_profile?: string;
company_profile?: [string];
// Seller
description?: string;
// Tourist
Expand Down

0 comments on commit ecb60df

Please sign in to comment.