fix type
This commit is contained in:
parent
39d6aecc57
commit
b300b5b94a
|
|
@ -29,7 +29,7 @@ export interface PageBody {
|
|||
variables: Array<Record<string, any>>;
|
||||
script: string;
|
||||
eyeCatchingImage?: MiDriveFile | null;
|
||||
font: string;
|
||||
font: 'serif' | 'sans-serif';
|
||||
alignCenter: boolean;
|
||||
hideTitleWhenPinned: boolean;
|
||||
}
|
||||
|
|
@ -141,7 +141,7 @@ export class PageService {
|
|||
eyeCatchingImageId: body.eyeCatchingImage === undefined ? undefined : (body.eyeCatchingImage?.id ?? null),
|
||||
});
|
||||
|
||||
console.log("page.content", page.content);
|
||||
console.log('page.content', page.content);
|
||||
|
||||
if (body.content != null) {
|
||||
const beforeReferencedNotes = this.collectReferencedNotes(page.content);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export class MiPage {
|
|||
@Column('varchar', {
|
||||
length: 32,
|
||||
})
|
||||
public font: string;
|
||||
public font: 'serif' | 'sans-serif';
|
||||
|
||||
@Index()
|
||||
@Column({
|
||||
|
|
|
|||
Loading…
Reference in New Issue