@@ -19,8 +19,7 @@ type InboxRepository interface {
1919 inboxIds []uuid.UUID , withCaseCount bool ) ([]models.Inbox , error )
2020 CreateInbox (ctx context.Context , exec repositories.Executor ,
2121 createInboxAttributes models.CreateInboxInput , newInboxId uuid.UUID ) error
22- UpdateInbox (ctx context.Context , exec repositories.Executor ,
23- inboxId uuid.UUID , name * string , escalationInboxId * uuid.UUID , autoAssignEnabled * bool ) error
22+ UpdateInbox (ctx context.Context , exec repositories.Executor , inboxId uuid.UUID , input models.UpdateInboxInput ) error
2423 SoftDeleteInbox (ctx context.Context , exec repositories.Executor , inboxId uuid.UUID ) error
2524
2625 ListOrganizationCases (ctx context.Context , exec repositories.Executor , filters models.CaseFilters ,
@@ -114,9 +113,7 @@ func (usecase *InboxUsecase) CreateInbox(ctx context.Context, input models.Creat
114113 return inbox , nil
115114}
116115
117- func (usecase * InboxUsecase ) UpdateInbox (ctx context.Context , inboxId uuid.UUID , name * string ,
118- escalationInboxId * uuid.UUID , autoAssignEnabled * bool ,
119- ) (models.Inbox , error ) {
116+ func (usecase * InboxUsecase ) UpdateInbox (ctx context.Context , inboxId uuid.UUID , input models.UpdateInboxInput ) (models.Inbox , error ) {
120117 inbox , err := executor_factory .TransactionReturnValue (
121118 ctx ,
122119 usecase .transactionFactory ,
@@ -135,8 +132,7 @@ func (usecase *InboxUsecase) UpdateInbox(ctx context.Context, inboxId uuid.UUID,
135132 return models.Inbox {}, err
136133 }
137134
138- if err := usecase .inboxRepository .UpdateInbox (ctx , tx , inboxId , name ,
139- escalationInboxId , autoAssignEnabled ); err != nil {
135+ if err := usecase .inboxRepository .UpdateInbox (ctx , tx , inboxId , input ); err != nil {
140136 return models.Inbox {}, err
141137 }
142138
0 commit comments