🚑 fix saving wrong ids by changing to decimalid

This commit is contained in:
Axel Olausson Holtenäs 2022-02-27 23:18:10 +01:00
parent a12f285c71
commit 83e65ce8d6
No known key found for this signature in database
GPG key ID: E3AE7E194AE017ED

View file

@ -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,