Skip to content

Commit

Permalink
Merge pull request #599 from markusgeert/refactor/factor-out-deprecat…
Browse files Browse the repository at this point in the history
…ed-promise-mysql

refactor: factor out deprecated promise-mysql lib
  • Loading branch information
rudivanhierden authored Sep 23, 2024
2 parents 1fa74a0 + 13d6b76 commit bc1566f
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 92 deletions.
102 changes: 21 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"private": true,
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"prettier": "3.0.3",
"promise-mysql": "^5.2.0"
"mysql2": "^3.11.3",
"prettier": "3.0.3"
},
"dependencies": {
"react-leaflet": "^4.2.1",
"uuid": "^10.0.0"
}
}
}
2 changes: 0 additions & 2 deletions scripts/setup-admin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const fs = require('fs');
const util = require('util');
const imgDb = require('promise-mysql');
const execute = require('./execute');

module.exports = async function setupAdminServer(actions) {
Expand Down
3 changes: 1 addition & 2 deletions scripts/setup-api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('fs');
const util = require('util');
const apiDb = require('promise-mysql');
const apiDb = require('mysql2/promise');
const execute = require('./execute');

module.exports = async function setupApi(actions) {
Expand Down
3 changes: 1 addition & 2 deletions scripts/setup-auth.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('fs').promises;
const util = require('util');
const authDb = require('promise-mysql');
const authDb = require('mysql2/promise');
const execute = require('./execute');

module.exports = async function setupAuthServer(actions) {
Expand Down
2 changes: 0 additions & 2 deletions scripts/setup-image.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const fs = require('fs');
const util = require('util');
const imgDb = require('promise-mysql');
const execute = require('./execute');

module.exports = async function setupImageServer(actions) {
Expand Down

0 comments on commit bc1566f

Please sign in to comment.