GEWIS / sudosos-backend

SudoSOS is a Node.js-based Bar and POS system made for study association GEWIS.
https://sudosos.gewis.nl
GNU Affero General Public License v3.0
4 stars 3 forks source link

Remove all deprecated TypeOrm functions #304

Open JustSamuel opened 1 week ago

JustSamuel commented 1 week ago

Turns out, the hanging nodejs process in the mocha test suit using mariadb is a connection created by making a "default" connection using the deprecated global functions form TypeOrm.

The ones creating using the AppDataSource can simply be closed using '.destory()'. The fix therefore is to migrate all the services to use their own manager, or the global AppDataSource manager.

See #291 for the tests and results.

Should also help with #289