fix backend typecheck
This commit is contained in:
parent
5ba2c887fe
commit
e0c30de751
|
@ -326,6 +326,8 @@ export class AnnouncementService {
|
||||||
icon: announcement.icon,
|
icon: announcement.icon,
|
||||||
display: announcement.display,
|
display: announcement.display,
|
||||||
needConfirmationToRead: announcement.needConfirmationToRead,
|
needConfirmationToRead: announcement.needConfirmationToRead,
|
||||||
|
closeDuration: announcement.closeDuration,
|
||||||
|
displayOrder: announcement.displayOrder,
|
||||||
forYou: announcement.userId === me?.id,
|
forYou: announcement.userId === me?.id,
|
||||||
isRead: reads.some(read => read.announcementId === announcement.id),
|
isRead: reads.some(read => read.announcementId === announcement.id),
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -677,7 +677,7 @@ export class DriveService {
|
||||||
|
|
||||||
await this.driveFilesRepository.update(file.id, values);
|
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
|
// Publish fileUpdated event
|
||||||
if (file.userId) {
|
if (file.userId) {
|
||||||
|
|
|
@ -53,7 +53,7 @@ export const meta = {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
forExistingUsers: {
|
forYou: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
@ -69,9 +69,9 @@ export const meta = {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
userId: {
|
isRead: {
|
||||||
type: 'string',
|
type: 'boolean',
|
||||||
optional: false, nullable: true,
|
optional: true, nullable: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue