Skip to content

Commit

Permalink
Permission set group recalculation check fix (#89)
Browse files Browse the repository at this point in the history
chore(permissionset): increase psg check interval and add outdate criteria to the psg query
  • Loading branch information
dieffrei authored Jul 3, 2024
1 parent c886ea1 commit 2979030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/permsets/PermissionSetGroupUpdateAwaiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import SFPLogger, { Logger, LoggerLevel } from '@flxbl-io/sfp-logger';
import QueryHelper from '../queryHelper/QueryHelper';
import { delay } from '../utils/Delay';

const psGroupQuery = `SELECT Id,MasterLabel,Status FROM PermissionSetGroup WHERE Status = 'Updating'`;
const psGroupQuery = `SELECT Id,MasterLabel,Status FROM PermissionSetGroup WHERE Status IN ('Updating', 'Outdated')`;

export default class PermissionSetGroupUpdateAwaiter {
constructor(private connection: Connection, private logger: Logger, private intervalBetweenRepeats = 30000) {}
constructor(private connection: Connection, private logger: Logger, private intervalBetweenRepeats = 60000) {}

async waitTillAllPermissionSetGroupIsUpdated() {
SFPLogger.log(
Expand Down

0 comments on commit 2979030

Please sign in to comment.