Skip to content

Commit

Permalink
feat: added some instructions to run restore script
Browse files Browse the repository at this point in the history
  • Loading branch information
NithinKuruba committed Aug 18, 2023
1 parent 0937904 commit 71b9f51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/restore-idir-users-with-roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@ const basePath = path.join(__dirname, 'exports');
const restoreUsers = async () => {
if (!env || !json) {
console.info(`
Pre-requisites:
* Run SELECT * FROM KC_DELETED_USERS WHERE TIMESTAMP > CURRENT_DATE AND ENVIRONMENT = <env>; to fetch deleted user data by environment
* Save the output in JSON format and place it under <root>/scripts folder
Usages:
node restore-idir-users-with-roles.js --env <env> --json <jsonfile>
Examples:
node restore-idir-users-with-roles.js --env dev --json dev-users.json
`);

return;
Expand Down

0 comments on commit 71b9f51

Please sign in to comment.