diff --git a/src/data/repos/articles.ts b/src/data/repos/articles.ts index 3020355..23bf242 100644 --- a/src/data/repos/articles.ts +++ b/src/data/repos/articles.ts @@ -73,7 +73,7 @@ export class ArticleDB { pdfs: { a4: this.#assets.getPath( path.resolve('/', 'articles', id, 'a4.gen.yml'), - )?.url || null, + ) || null, } }; diff --git a/src/data/repos/profile.ts b/src/data/repos/profile.ts index 7ebcfe5..aabe963 100644 --- a/src/data/repos/profile.ts +++ b/src/data/repos/profile.ts @@ -71,7 +71,7 @@ export class ProfileDB { structure.resume = this.#assets.getPath( 'profile', 'a4.gen.yml', - )?.url || null; + ) || null; return structure; }