fix tuype
This commit is contained in:
parent
ad4751918b
commit
edbe30a3df
|
|
@ -111,6 +111,7 @@ export class ChannelEntityService {
|
||||||
description: channel.description,
|
description: channel.description,
|
||||||
userId: channel.userId,
|
userId: channel.userId,
|
||||||
bannerUrl: bannerFile ? this.driveFileEntityService.getPublicUrl(bannerFile) : null,
|
bannerUrl: bannerFile ? this.driveFileEntityService.getPublicUrl(bannerFile) : null,
|
||||||
|
bannerId: channel.bannerId,
|
||||||
pinnedNoteIds: channel.pinnedNoteIds,
|
pinnedNoteIds: channel.pinnedNoteIds,
|
||||||
color: channel.color,
|
color: channel.color,
|
||||||
isArchived: channel.isArchived,
|
isArchived: channel.isArchived,
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,11 @@ export const packedChannelSchema = {
|
||||||
format: 'url',
|
format: 'url',
|
||||||
nullable: true, optional: false,
|
nullable: true, optional: false,
|
||||||
},
|
},
|
||||||
|
bannerId: {
|
||||||
|
type: 'string',
|
||||||
|
nullable: true, optional: false,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
pinnedNoteIds: {
|
pinnedNoteIds: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
nullable: false, optional: false,
|
nullable: false, optional: false,
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ export function channel(id = 'somechannelid', name = 'Some Channel', bannerUrl:
|
||||||
description: null,
|
description: null,
|
||||||
userId: null,
|
userId: null,
|
||||||
bannerUrl,
|
bannerUrl,
|
||||||
|
bannerId: null,
|
||||||
pinnedNoteIds: [],
|
pinnedNoteIds: [],
|
||||||
color: '#000',
|
color: '#000',
|
||||||
isArchived: false,
|
isArchived: false,
|
||||||
|
|
|
||||||
|
|
@ -4948,6 +4948,8 @@ export type components = {
|
||||||
userId: string | null;
|
userId: string | null;
|
||||||
/** Format: url */
|
/** Format: url */
|
||||||
bannerUrl: string | null;
|
bannerUrl: string | null;
|
||||||
|
/** Format: id */
|
||||||
|
bannerId: string | null;
|
||||||
pinnedNoteIds: string[];
|
pinnedNoteIds: string[];
|
||||||
color: string;
|
color: string;
|
||||||
isArchived: boolean;
|
isArchived: boolean;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue