Commit 31b28ac0 authored by Mahdi Sellami's avatar Mahdi Sellami

corrected get service by LeikaId

parent 895cf924
......@@ -23,7 +23,7 @@ exports.getAllServices = function() {
**/
exports.getServiceByLeiKaId = function(leikaId) {
return new Promise(function(resolve, reject) {
const serviceRecord = Service.find({leikaId: leikaId});
const serviceRecord = Service.findOne({leikaId: leikaId});
resolve(serviceRecord);
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment