mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-05-27 10:32:37 -05:00
Added missing Stripe connection on PNIDs
This commit is contained in:
parent
1e42569cbb
commit
b67b266b8d
|
|
@ -101,6 +101,14 @@ const PNIDSchema = new Schema<IPNID, PNIDModel, IPNIDMethods>({
|
|||
connections: {
|
||||
discord: {
|
||||
id: String
|
||||
},
|
||||
stripe: {
|
||||
customer_id: String,
|
||||
subscription_id: String,
|
||||
price_id: String,
|
||||
tier_level: Number,
|
||||
tier_name: String,
|
||||
latest_webhook_timestamp: Number
|
||||
}
|
||||
}
|
||||
}, { id: false });
|
||||
|
|
|
|||
1
src/types/mongoose-unique-validator.d.ts
vendored
Normal file
1
src/types/mongoose-unique-validator.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
declare module 'mongoose-unique-validator';
|
||||
|
|
@ -60,7 +60,17 @@ export interface IPNID {
|
|||
connections: {
|
||||
discord: {
|
||||
id: string;
|
||||
}
|
||||
};
|
||||
connections: {
|
||||
stripe: {
|
||||
customer_id: string;
|
||||
subscription_id: string;
|
||||
price_id: string;
|
||||
tier_level: number;
|
||||
tier_name: string;
|
||||
latest_webhook_timestamp: number;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user