|
|
|
@ -1026,7 +1026,7 @@ exports.getPendingSuppliers = async (req, reply) => {
|
|
|
|
|
.then((docs) => {
|
|
|
|
|
const supplierDataWithTimestamp = docs.map((doc, index) => ({
|
|
|
|
|
data: doc,
|
|
|
|
|
timestamp: timestamps[index],
|
|
|
|
|
//timestamp: timestamps[index],
|
|
|
|
|
}));
|
|
|
|
|
reply.send({
|
|
|
|
|
status_code: 200,
|
|
|
|
@ -1101,7 +1101,7 @@ exports.getPendingCustomers = async (req, reply) => {
|
|
|
|
|
.then((docs) => {
|
|
|
|
|
const customerDataWithTimestamp = docs.map((doc, index) => ({
|
|
|
|
|
data: doc,
|
|
|
|
|
timestamp: timestamps[index],
|
|
|
|
|
//timestamp: timestamps[index],
|
|
|
|
|
}));
|
|
|
|
|
//reply.send({ status_code: 200, data: docs, count: docs.length ,timestamps});
|
|
|
|
|
reply.send({
|
|
|
|
|