Total js: F.model is returning null

52 Views Asked by At

Below const deposit is returning null value. But the same line is working in the different controller in same directory. I just included this lines in new controller file in same directory. Is anything else needed?

 const deposit = F.model('managedeposit');

Also other models are working there in same file like

const purchaseListModel = F.model('purchaselist');
1

There are 1 best solutions below

0
On

There was a syntax error in managedeposit model. Which I was trying to import. After fixing that error, everything seems working fine. :)