after parsing an upload and finding all matching bills, stre the discovered relationships in the database
After parsing an upload, add all the matched invoice ids to the invoices field of the upload docment. The upload should be an instance of docparse-upload.
Dependency tracking by David
var eyespect = require'eyespect'inspectorvar upload =invoiceIDs:var invoice1ID = 'fooInvoiceID1'var invoice2ID = 'barInvoiceID2'var invoiceIDs = invoice1ID invoice2ID;var data =invoiceIDs: invoiceIDsupload: upload;setMatchesdataif errinspecterr 'error adding invoice ids to upload'return;inspectupload 'upload after adding invoice ids';;
npm install docparse-upload-set-matches
npm install docparse-upload-set-matches eyespect