🚑 fix saving wrong ids by changing to decimalid
This commit is contained in:
parent
a12f285c71
commit
83e65ce8d6
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ const mongoose = require('mongoose');
|
|||
const creditSchema = new mongoose.Schema(
|
||||
{
|
||||
userId: {
|
||||
type: mongoose.SchemaTypes.Number,
|
||||
type: mongoose.SchemaTypes.Decimal128,
|
||||
required: true,
|
||||
unique: true,
|
||||
index: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue