tangled
alpha
login
or
join now
cosmik.network
/
semble
43
fork
atom
A social knowledge tool for researchers built on ATProto
43
fork
atom
overview
issues
13
pulls
pipelines
change default access type to closed for collections
Wesley Finck
8 months ago
f02d8a49
43280f3d
+3
-9
2 changed files
expand all
collapse all
unified
split
src
modules
cards
application
useCases
commands
CreateCollectionUseCase.ts
domain
Collection.ts
+1
-1
src/modules/cards/application/useCases/commands/CreateCollectionUseCase.ts
···
63
63
authorId: curatorId,
64
64
name: request.name,
65
65
description: request.description,
66
66
-
accessType: CollectionAccessType.OPEN,
66
66
+
accessType: CollectionAccessType.CLOSED,
67
67
collaboratorIds: [],
68
68
createdAt: new Date(),
69
69
updatedAt: new Date(),
+2
-8
src/modules/cards/domain/Collection.ts
···
4
4
import { CollectionId } from "./value-objects/CollectionId";
5
5
import { CardId } from "./value-objects/CardId";
6
6
import { CuratorId } from "./value-objects/CuratorId";
7
7
-
import {
8
8
-
CollectionName,
9
9
-
InvalidCollectionNameError,
10
10
-
} from "./value-objects/CollectionName";
11
11
-
import {
12
12
-
CollectionDescription,
13
13
-
InvalidCollectionDescriptionError,
14
14
-
} from "./value-objects/CollectionDescription";
7
7
+
import { CollectionName } from "./value-objects/CollectionName";
8
8
+
import { CollectionDescription } from "./value-objects/CollectionDescription";
15
9
import { PublishedRecordId } from "./value-objects/PublishedRecordId";
16
10
17
11
export interface CardLink {