Unverified Commit 9cfc4531 authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix dnt type errors

parent f3787c34
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2035,7 +2035,7 @@ export class FederationImpl<TContextData> implements Federation<TContextData> {
    const results = await Promise.allSettled(promises);
    const errors = results
      .filter((r) => r.status === "rejected")
      .map((r) => r.reason);
      .map((r) => (r as PromiseRejectedResult).reason);
    if (errors.length > 0) {
      logger.error(
        "Failed to enqueue activity {activityId} to send later: {errors}",
@@ -3384,7 +3384,7 @@ export class InboxContextImpl<TContextData> extends ContextImpl<TContextData>
    const results = await Promise.allSettled(promises);
    const errors: unknown[] = results
      .filter((r) => r.status === "rejected")
      .map((r) => r.reason);
      .map((r) => (r as PromiseRejectedResult).reason);
    if (errors.length > 0) {
      logger.error(
        "Failed to enqueue activity {activityId} to forward later:\n{errors}",
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ export function extractInboxes(
    if (inbox != null && recipient.id != null) {
      if (
        excludeBaseUris != null &&
        excludeBaseUris.some((u) => u.origin == inbox.origin)
        excludeBaseUris.some((u) => u.origin === inbox?.origin)
      ) {
        continue;
      }