master
varun 2 years ago
parent 7eb3013e23
commit b101226d4f

@ -14,4 +14,5 @@ async function decodeToken(request) {
});
}
module.exports = fp(decodeToken, { fastify: ">=1.0.0" });

@ -14,6 +14,7 @@ const schedule = require('node-schedule');
// Handle friend request creation
exports.friendRequest = async (request, reply) => {

@ -915,6 +915,7 @@ exports.getCurrentSupplier = async (req, reply) => {
throw boom.boomify(err);
}
};
// Get all suppliers
// exports.getSuppliers = async (req, reply) => {
// const limit = parseInt(req.query.limit) || 100;

@ -108,6 +108,7 @@ exports.verifyUser = async (req, reply) => {
// check if user exists in the system. If user exists , display message that
// phone number is not available
userExists = await User.findOne({ phone: phone });
if (userExists) {
// return user exists message

Loading…
Cancel
Save