diff --git a/backend/src/services/user/model.ts b/backend/src/services/user/model.ts index ffa5c1b..34ca3a0 100644 --- a/backend/src/services/user/model.ts +++ b/backend/src/services/user/model.ts @@ -13,8 +13,8 @@ const schema = new mongoose.Schema( required: true, index: { unique: true }, }, - currentAllocation: { - type: Number, + currentAllocationId: { + type: String, required: true, }, deposits: [ diff --git a/backend/src/services/user/types.ts b/backend/src/services/user/types.ts index 4d32590..680b675 100644 --- a/backend/src/services/user/types.ts +++ b/backend/src/services/user/types.ts @@ -1,4 +1,3 @@ -import { t } from "i18next"; import { DeleteResult } from "mongodb"; type UserIdType = string;