Skip to content

Commit

Permalink
Merge pull request #13 from MengChiehLiu/develop
Browse files Browse the repository at this point in the history
Version 1.0.6
  • Loading branch information
MengChiehLiu authored Aug 22, 2023
2 parents 68e39a0 + f3af662 commit 0c35da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/server/models/registers.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function getRegisters(user_id, type){
if (type==='assets') condition = 'subject_id > 1200 AND subject_id < 1300'
else if (type==='liabilities') condition = 'subject_id > 2200 AND subject_id < 2300'
else if (type==='ar') condition = 'subject_id = 1103'
else if (type==='ap') condition = 'subject_id = 1104'
else if (type==='ap') condition = 'subject_id = 2102'
else throw new CustomError('Invalid query, type should be one of assets/liabilities/ar/ap.')

// query DB start here
Expand Down

0 comments on commit 0c35da8

Please sign in to comment.