Fix options
This commit is contained in:
@@ -64,9 +64,9 @@ module.exports.getAllForUser = async (req, res) => {
|
||||
const data = await Withdraw.find({
|
||||
userId: req.user_id,
|
||||
$or: [
|
||||
{ amount: { $regex: search, $options: 'i' } },
|
||||
{ dollarAmount: { $regex: search, $options: 'i' } },
|
||||
{ trackingNumber: { $regex: search, $options: 'i' } },
|
||||
{ amount: { $regex: search } },
|
||||
{ dollarAmount: { $regex: search } },
|
||||
{ trackingNumber: { $regex: search } },
|
||||
],
|
||||
}).skip(page).limit(rows).sort({ created_at: -1 });
|
||||
const total = Math.ceil((await Withdraw.countDocuments({ userId: req.user_id })))
|
||||
|
||||
Reference in New Issue
Block a user