Skip to content

Commit f5a128e

Browse files
committed
Add new field range_parent_id on order scheme
We storage the parent order id if the new order is a range child order
1 parent 0dad7a6 commit f5a128e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/order.js

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const OrderSchema = new mongoose.Schema({
7070
tg_channel_message2: { type: String },
7171
tg_group_message1: { type: String },
7272
tg_group_message2: { type: String },
73+
range_parent_id: { type: String }, // If the order have a parent we save the Id
7374
price_from_api: { type: Boolean },
7475
price_margin: { type: Number, default: 0 },
7576
admin_warned: { type: Boolean, default: false }, // We set this to true when the bot warns admins the order is about to expire

0 commit comments

Comments
 (0)