Skip to content

Commit

Permalink
chore: delete SignedDocumentDataDto
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-molinski committed Jan 17, 2025
1 parent 2eab621 commit b549602
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ enum SignedDocumentType {
proposalDocument(uuid: '7808d2ba-d511-40af-84e8-c0d1625fdfdc'),
proposalTemplate(uuid: '0ce8ab38-9258-4fbc-a62e-7faa6e58318f');

final String uuid;

const SignedDocumentType({
required this.uuid,
});

final String uuid;
}

final class SignedDocumentData extends Equatable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:catalyst_voices_models/catalyst_voices_models.dart';
import 'package:catalyst_voices_repositories/src/dto/document/document_data_dto.dart';
import 'package:catalyst_voices_repositories/src/dto/document/document_dto.dart';
import 'package:catalyst_voices_repositories/src/dto/document/schema/document_schema_dto.dart';
import 'package:catalyst_voices_repositories/src/dto/document/signed_document_data_dto.dart';
import 'package:catalyst_voices_shared/catalyst_voices_shared.dart';
import 'package:synchronized/synchronized.dart';
import 'package:uuid/uuid.dart';
Expand Down Expand Up @@ -124,22 +123,18 @@ final class DocumentRepositoryImpl implements DocumentRepository {
final ver = ref.version ?? const Uuid().v7();
final template = !isSchema ? const SignedDocumentRef(id: 'schema') : null;

final metadata = SignedDocumentMetadataDto(
final metadata = SignedDocumentMetadata(
type: type,
id: ref.id,
ver: ver,
version: ver,
template: template,
);

final payload = SignedDocumentDataPayload(signedDocument);

final dto = SignedDocumentDataDto(
return SignedDocumentData(
metadata: metadata,
payload: payload,
);

final model = dto.toModel();

return model;
}
}

This file was deleted.

0 comments on commit b549602

Please sign in to comment.