Skip to content

Commit

Permalink
api: fix builds for list-did feature #226
Browse files Browse the repository at this point in the history
  • Loading branch information
maany committed Jul 14, 2023
1 parent 34d7647 commit d28b0f8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 88 deletions.
76 changes: 0 additions & 76 deletions src/lib/core/use-case/list-dids-usecase.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,6 @@ class ListDIDsUseCase extends BaseMultiCallStreamableUseCase<ListDIDsRequest, Li
isValid: true,
}
}









}

export default ListDIDsUseCase;
3 changes: 3 additions & 0 deletions src/lib/core/use-case/login-config-usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,23 @@ class LoginConfigUseCase extends BaseUseCase<void, LoginConfigResponse, LoginCon
if (error.type === 'ConfigNotFound') {
return {
status: 'error',
name: 'ConfigNotFound',
type: 'ConfigNotFound',
message: error.message? error.message : 'Configuration not found on the server.',
}
}
else if (error.type === 'InvalidConfig') {
return {
status: 'error',
name: 'InvalidConfig',
type: 'InvalidConfig',
message: error.message? error.message : 'Invalid configuration found on the server.',
}
}
else {
return {
status: 'error',
name: 'UnknownError',
type: 'UnknownError',
message: 'An unknown error occurred while fetching the configuration of login page from the server.',
}
Expand Down
3 changes: 1 addition & 2 deletions src/lib/infrastructure/ioc/features/list-dids-feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import INPUT_PORT from '@/lib/infrastructure/ioc/ioc-symbols-input-port'
import USECASE_FACTORY from '@/lib/infrastructure/ioc/ioc-symbols-usecase-factory'
import { Container } from 'inversify'
import ListDIDsController from '@/lib/infrastructure/controller/list-dids-controller'
// import ListDIDsUseCase from '@/lib/core/use-case/list-dids-usecase'
import ListDIDsUseCase from '@/lib/core/use-case/list-dids/list-dids-usecase2'
import ListDIDsUseCase from '@/lib/core/use-case/list-dids/list-dids-usecase'
import ListDIDsPresenter from '../../presenter/list-dids-presenter'

export default class ListDidsFeature extends BaseStreamableFeature<
Expand Down
2 changes: 1 addition & 1 deletion test/sdk/post-processing-streaming-pipeline/presenter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseStreamingPresenter } from "@/lib/sdk/presenter"
import { BaseErrorResponseModel, BaseResponseModel } from "@/lib/sdk/usecase-models"
import { StreamData, TResponseModel, ViewModel } from "./models"
import { TResponseModel, ViewModel } from "./models"

export class TestPresenter extends BaseStreamingPresenter<
BaseResponseModel,
Expand Down

0 comments on commit d28b0f8

Please sign in to comment.