···7676 const cardIdResult = CardId.createFromString(request.cardId);
7777 if (cardIdResult.isErr()) {
7878 return err(
7979- new ValidationError(
8080- `Invalid card ID: ${cardIdResult.error.message}`,
8181- ),
7979+ new ValidationError(`Invalid card ID: ${cardIdResult.error.message}`),
8280 );
8381 }
8482 const cardId = cardIdResult.value;
···103101 // Verify it's a URL card
104102 if (!urlCard.isUrlCard) {
105103 return err(
106106- new ValidationError('Card must be a URL card to update associations.'),
104104+ new ValidationError(
105105+ 'Card must be a URL card to update associations.',
106106+ ),
107107 );
108108 }
109109110110 // Verify ownership
111111 if (!urlCard.curatorId.equals(curatorId)) {
112112 return err(
113113- new ValidationError('You do not have permission to update this card.'),
113113+ new ValidationError(
114114+ 'You do not have permission to update this card.',
115115+ ),
114116 );
115117 }
116118117119 // Get the URL from the card for note operations
118120 if (!urlCard.url) {
119119- return err(
120120- new ValidationError('URL card must have a URL property.'),
121121- );
121121+ return err(new ValidationError('URL card must have a URL property.'));
122122 }
123123 const url = urlCard.url;
124124···152152 }
153153154154 // Save updated note card
155155- const saveNoteCardResult =
156156- await this.cardRepository.save(noteCard);
155155+ const saveNoteCardResult = await this.cardRepository.save(noteCard);
157156 if (saveNoteCardResult.isErr()) {
158157 return err(
159158 AppError.UnexpectedError.create(saveNoteCardResult.error),
···284283 );
285284 if (removeFromCollectionsResult.isErr()) {
286285 if (
287287- removeFromCollectionsResult.error instanceof AppError.UnexpectedError
286286+ removeFromCollectionsResult.error instanceof
287287+ AppError.UnexpectedError
288288 ) {
289289 return err(removeFromCollectionsResult.error);
290290 }