Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Adson Gomes Oliveira committed Jan 31, 2025
1 parent f5cb774 commit 834a276
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tablerise/database-management",
"version": "5.3.5",
"version": "5.3.6",
"description": "A library to manage the project database",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/User.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { userStatus } from "../types/DatabaseEntities";
import { ImageObject } from "./Common";

export interface InProgress {
status: userStatus;
Expand All @@ -18,7 +19,7 @@ export interface GameInfoCampaigns {
role: string;
title: string;
description: string;
cover?: string;
cover?: ImageObject;
}

export interface GameInfo {
Expand Down
3 changes: 2 additions & 1 deletion src/models/user/UserDetailModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import mongoose, { Schema } from 'mongoose';
import MongoModel from '../MongoModel';
import { GameInfo, GameInfoCampaigns, SecretQuestion, UserDetail } from '../../interfaces/User';
import newUUID from '../../helpers/newUUID';
import CommonSchemas from '../common/CommonModelSchemas';

const gameInfoCampaignsMongooseSchema = new Schema<GameInfoCampaigns>(
{
campaignId: { type: String, required: true },
role: { type: String, required: true },
title: { type: String, required: true },
description: { type: String, required: true },
cover: { type: String },
cover: { type: CommonSchemas.pictureMongooseSchema },
}
)

Expand Down

0 comments on commit 834a276

Please sign in to comment.