@magda/acs-cmd 5.0.0-alpha.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,10 +117,6 @@ program.description("Make a user an Admin user").argument("<userId>", "User ID")
117
117
  [ADMIN_ROLE_ID, userId]
118
118
  );
119
119
  }
120
- await pool2.query(
121
- `UPDATE "users" SET "isAdmin" = $1 WHERE "id" = $2`,
122
- [true, userId]
123
- );
124
120
  console.log(chalk.green("Operation Completed!"));
125
121
  } catch (e) {
126
122
  console.error(chalk.red(`Error: ${e}`));
@@ -117,10 +117,6 @@ program.description("Remove Admin role / status from a user").argument("<userId>
117
117
  [ADMIN_ROLE_ID, userId]
118
118
  );
119
119
  }
120
- await pool2.query(
121
- `UPDATE "users" SET "isAdmin"=$1 WHERE "id" = $2`,
122
- [false, userId]
123
- );
124
120
  console.log(chalk.green("Operation Completed!"));
125
121
  } catch (e) {
126
122
  console.error(chalk.red(`Error: ${e}`));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@magda/acs-cmd",
3
3
  "description": "MAGDA Account Management Utilities",
4
- "version": "5.0.0-alpha.1",
4
+ "version": "5.0.0",
5
5
  "bin": {
6
6
  "acs-cmd": "./bin/acs-cmd.js"
7
7
  },
@@ -22,8 +22,8 @@
22
22
  "author": "",
23
23
  "license": "Apache-2.0",
24
24
  "devDependencies": {
25
- "@magda/scripts": "^5.0.0-alpha.1",
26
- "@magda/typescript-common": "^5.0.0-alpha.1",
25
+ "@magda/scripts": "^5.0.0",
26
+ "@magda/typescript-common": "^5.0.0",
27
27
  "esbuild": "^0.19.10",
28
28
  "fs-extra": "^11.2.0"
29
29
  },