Skip to content

Commit

Permalink
fix backend typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
riku6460 committed Sep 25, 2023
1 parent 5ba2c88 commit e0c30de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/AnnouncementService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ export class AnnouncementService {
icon: announcement.icon,
display: announcement.display,
needConfirmationToRead: announcement.needConfirmationToRead,
closeDuration: announcement.closeDuration,
displayOrder: announcement.displayOrder,
forYou: announcement.userId === me?.id,
isRead: reads.some(read => read.announcementId === announcement.id),
}));
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/core/DriveService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ export class DriveService {

await this.driveFilesRepository.update(file.id, values);

const fileObj = await this.driveFileEntityService.pack(file.id, { self: true });
const fileObj = await this.driveFileEntityService.pack(file.id, updater, { self: true });

// Publish fileUpdated event
if (file.userId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const meta = {
type: 'string',
optional: false, nullable: false,
},
forExistingUsers: {
forYou: {
type: 'boolean',
optional: false, nullable: false,
},
Expand All @@ -69,9 +69,9 @@ export const meta = {
type: 'number',
optional: false, nullable: false,
},
userId: {
type: 'string',
optional: false, nullable: true,
isRead: {
type: 'boolean',
optional: true, nullable: false,
},
},
},
Expand Down

0 comments on commit e0c30de

Please sign in to comment.