Skip to content

Commit d432e42

Browse files
committed
fix: log error action in syncRsvpToAtproto instead of silently dropping
The syncRsvpToAtproto method handled 'published' and 'skipped' actions but silently ignored 'error', hiding AT Protocol publish failures (e.g. missing OAuth session for non-custodial users). Closes: om-ldoy
1 parent 1dca9bc commit d432e42

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/event-attendee/event-attendee.service.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,15 @@ export class EventAttendeeService {
204204
this.logger.debug(
205205
`[syncRsvpToAtproto] Skipped - event not eligible for AT Protocol publishing`,
206206
);
207+
} else if (publishResult.action === 'error') {
208+
this.logger.warn(
209+
`[syncRsvpToAtproto] RSVP ${attendee.id} saved but AT Protocol publish failed: ${publishResult.error}`,
210+
{
211+
attendeeId: attendee.id,
212+
eventSlug: attendee.event?.slug,
213+
needsOAuthLink: publishResult.needsOAuthLink,
214+
},
215+
);
207216
}
208217
}
209218

0 commit comments

Comments
 (0)