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