Skip to content

Commit 302632b

Browse files
committed
Remove unused 'type' parameter from deleteInboxMessages method
1 parent 7ef11f3 commit 302632b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

api/src/controllers/inbox.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class InboxController {
339339
: [Number.parseInt(rawMessageId)];
340340

341341
// Pass all 3 arguments again
342-
await this.inboxService.deleteInboxMessages(messageIds, placeId, type);
342+
await this.inboxService.deleteInboxMessages(messageIds, placeId);
343343

344344
response.status(200).json({ success: 'deleted', count: messageIds.length });
345345
} catch (error) {

api/src/services/inbox/inbox.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ export class InboxService {
2222
public async deleteInboxMessages(
2323
messageIds: number[],
2424
placeId: number,
25-
type: string
2625
): Promise<any> {
27-
return this.inboxRepository.deleteInboxMessages(messageIds, placeId, type);
26+
return this.inboxRepository.deleteInboxMessages(messageIds, placeId);
2827
}
2928

3029
public async getAdminInfo(placeId, memberId): Promise<any> {

0 commit comments

Comments
 (0)