Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function getWorkspaceLicense(): Promise<{ updated: boolean; license
const fromCurrentLicense = async () => {
const license = currentLicense?.value as string | undefined;
if (license) {
callbacks.run('workspaceLicenseChanged', license);
await callbacks.run('workspaceLicenseChanged', license);
}

return { updated: false, license: license ?? '' };
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/lib/callbacks/callbacksBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class Callbacks<
this.setCallbacks(hook, hooks);
}

run<Hook extends keyof TEventLikeCallbackSignatures>(hook: Hook, ...args: Parameters<TEventLikeCallbackSignatures[Hook]>): void;
run<Hook extends keyof TEventLikeCallbackSignatures>(hook: Hook, ...args: Parameters<TEventLikeCallbackSignatures[Hook]>): Promise<void>;

run<Hook extends keyof TChainedCallbackSignatures>(
hook: Hook,
Expand Down