Skip to content

Commit

Permalink
fix(restart): the agent should only restart when at least one customi…
Browse files Browse the repository at this point in the history
…sation is installed (#898)
  • Loading branch information
Thenkei committed Dec 14, 2023
1 parent 64518c2 commit 8a09a3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/agent/src/utils/options-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default class OptionsValidator {
logger: copyOptions.logger,
permissionsCacheDurationInSeconds: copyOptions.permissionsCacheDurationInSeconds,
instantCacheRefresh: copyOptions.instantCacheRefresh,
experimental: copyOptions.experimental,
});

return {
Expand Down
8 changes: 5 additions & 3 deletions packages/forestadmin-client/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ export type ForestAdminClientOptions = {
logger?: Logger;
permissionsCacheDurationInSeconds?: number;
instantCacheRefresh?: boolean;
};

export type ForestAdminClientOptionsWithDefaults = Required<ForestAdminClientOptions> & {
experimental?: unknown;
};

export type ForestAdminClientOptionsWithDefaults = Required<
Omit<ForestAdminClientOptions, 'experimental'>
> &
Pick<ForestAdminClientOptions, 'experimental'>;

export type ForestAdminAuthServiceInterface = {
init: () => Promise<void>;
getUserInfo: (renderingId: number, accessToken: string) => Promise<UserInfo>;
Expand Down

0 comments on commit 8a09a3b

Please sign in to comment.