fix(msteams): Fix code formatting

Remove trailing whitespace to pass oxfmt format check.
This commit is contained in:
AI Assistant
2026-02-26 22:59:53 +08:00
committed by Peter Steinberger
parent ecbb3bcc1a
commit 773ab319ef
2 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ describe("msteams file consent invoke authz", () => {
await vi.waitFor(() => {
expect(fileConsentMockState.uploadToConsentUrl).toHaveBeenCalledTimes(1);
});
expect(fileConsentMockState.uploadToConsentUrl).toHaveBeenCalledWith(
expect.objectContaining({
url: "https://upload.example.com/put",

View File

@@ -145,7 +145,7 @@ export function registerMSTeamsHandlers<T extends MSTeamsActivityHandler>(
if (ctx.activity?.type === "invoke" && ctx.activity?.name === "fileConsent/invoke") {
// Send invoke response IMMEDIATELY to prevent Teams timeout
await ctx.sendActivity({ type: "invokeResponse", value: { status: 200 } });
// Handle file upload asynchronously (don't await)
handleFileConsentInvoke(ctx, deps.log).catch((err) => {
deps.log.debug?.("file consent handler error", { error: String(err) });