fix announcement api
This commit is contained in:
parent
df0a663283
commit
487ba201bf
|
@ -38,6 +38,10 @@ export const meta = {
|
||||||
optional: false, nullable: true,
|
optional: false, nullable: true,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
},
|
},
|
||||||
|
text: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
isActive: {
|
isActive: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
|
@ -46,10 +50,6 @@ export const meta = {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
text: {
|
|
||||||
type: 'string',
|
|
||||||
optional: false, nullable: false,
|
|
||||||
},
|
|
||||||
imageUrl: {
|
imageUrl: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: true,
|
optional: false, nullable: true,
|
||||||
|
@ -87,7 +87,7 @@ export const meta = {
|
||||||
optional: false, nullable: true,
|
optional: false, nullable: true,
|
||||||
ref: 'UserLite',
|
ref: 'UserLite',
|
||||||
},
|
},
|
||||||
readCount: {
|
reads: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
@ -130,7 +130,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
displayOrder: announcement.displayOrder,
|
displayOrder: announcement.displayOrder,
|
||||||
userId: announcement.userId,
|
userId: announcement.userId,
|
||||||
user: announcement.userInfo,
|
user: announcement.userInfo,
|
||||||
readCount: announcement.readCount,
|
reads: announcement.readCount,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,6 +66,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
icon: ps.icon,
|
icon: ps.icon,
|
||||||
forExistingUsers: ps.forExistingUsers,
|
forExistingUsers: ps.forExistingUsers,
|
||||||
needConfirmationToRead: ps.needConfirmationToRead,
|
needConfirmationToRead: ps.needConfirmationToRead,
|
||||||
|
closeDuration: ps.closeDuration,
|
||||||
|
displayOrder: ps.displayOrder,
|
||||||
isActive: ps.isActive,
|
isActive: ps.isActive,
|
||||||
}, me);
|
}, me);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue