Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Jul 16, 2024
1 parent 7833a53 commit 7215abc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export default class FleetbaseAuthPlugin implements IPluginAuth<Config> {
authenticate(identity: string, password: string, callback: Callback): Promise<void>;
adduser(identity: string, password: string, callback: Callback): Promise<void>;
allow_access(user: RemoteUser, pkg: (Config & PackageAccess) | (AllowAccess & PackageAccess), callback: AuthAccessCallback): Promise<void>;
allow_publish(user: RemoteUser, pkg: PackageAccess, callback: Callback): Promise<void>;
allow_publish(user: RemoteUser, pkg: (Config & PackageAccess) | (AllowAccess & PackageAccess), callback: Callback): Promise<void>;
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class FleetbaseAuthPlugin implements IPluginAuth<Config> {
}
}

public async allow_publish(user: RemoteUser, pkg: PackageAccess, callback: Callback): Promise<void> {
public async allow_publish(user: RemoteUser, pkg: (Config & PackageAccess) | (AllowAccess & PackageAccess), callback: Callback): Promise<void> {
// Allow publish should check with Fleetbase API for the extension and check the status for approved
// After publish registry should update the extension as published
this.logger.debug({ user }, 'Auth::allow_publish() - User: @{user}');
Expand Down

0 comments on commit 7215abc

Please sign in to comment.