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 @@ -136,7 +136,7 @@ export class RecordingService {
)
return { ok: true, data: result }
} catch (error) {
if (error instanceof NoSuchKey) {
if (error instanceof NoSuchKey || (error as Error)?.name === 'NoSuchKey') {
logger.warn('[RecordingService] S3 object not found (NoSuchKey)', {
key,
teamId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ export class DynamoDBKeyStore implements KeyStore {
})
)
} catch (error) {
if (error instanceof ConditionalCheckFailedException) {
if (
error instanceof ConditionalCheckFailedException ||
(error as Error)?.name === 'ConditionalCheckFailedException'
) {
// Key already exists — return the existing key instead of overwriting
return this.getKey(sessionId, teamId)
}
Expand Down
Loading