mirror of
https://github.com/standardnotes/server
synced 2026-10-17 21:03:09 -04:00
fix: functionality
This commit is contained in:
+3
-3
@@ -2,7 +2,7 @@ import { ItemShare } from '../../ItemShare/ItemShare'
|
||||
import { ItemShareServiceInterface } from '../../ItemShare/ItemShareServiceInterface'
|
||||
import { UseCaseInterface } from '../UseCaseInterface'
|
||||
|
||||
export type GetItemSharesResponse =
|
||||
export type GetUserItemSharesResponse =
|
||||
| {
|
||||
success: true
|
||||
itemShares: ItemShare[]
|
||||
@@ -12,10 +12,10 @@ export type GetItemSharesResponse =
|
||||
message: string
|
||||
}
|
||||
|
||||
export class GetItemSharesUseCase implements UseCaseInterface {
|
||||
export class GetUserItemSharesUseCase implements UseCaseInterface {
|
||||
constructor(private itemShareService: ItemShareServiceInterface) {}
|
||||
|
||||
async execute(dto: { userUuid: string }): Promise<GetItemSharesResponse> {
|
||||
async execute(dto: { userUuid: string }): Promise<GetUserItemSharesResponse> {
|
||||
const result = await this.itemShareService.getUserItemShares(dto.userUuid)
|
||||
|
||||
if (result === null) {
|
||||
Reference in New Issue
Block a user