From 40457007addfaf73f8f5a129a41840493b26c490 Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Thu, 7 Apr 2022 20:41:35 +0200 Subject: [PATCH] fix: fix generated resource paths --- src/data/repos/articles.ts | 2 +- src/data/repos/profile.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }