Skip to content

Commit 79fec82

Browse files
committed
Fix CRUDRepoPort
1 parent d3157e8 commit 79fec82

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/shared/domain/ICRUDRepoPort.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1616
*/
1717
export interface CRUDRepoPort<Aggregate> {
18-
getAll(): Aggregate[];
19-
getById(aggregateRootId: string): Aggregate;
20-
save(aggregateRootId: Aggregate): void;
21-
update(aggregate: Aggregate): void;
22-
delete(aggregateRootId: string): void;
18+
getAll(): Promise<Aggregate[]>;
19+
getById(aggregateRootId: string): Promise<Aggregate>;
20+
save(aggregate: Aggregate): Promise<void>;
21+
update(aggregate: Aggregate): Promise<void>;
22+
delete(aggregateRootId: string): Promise<void>;
2323
}

0 commit comments

Comments
 (0)