diff --git a/.gitignore b/.gitignore index b89a4cd..c3f7faf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .* !.gitignore docker-compose.yml -.idea \ No newline at end of file +.idea +/backend/target diff --git a/frontend/src/lib/paste.ts b/frontend/src/lib/paste.ts index 98a486c..105ce2b 100755 --- a/frontend/src/lib/paste.ts +++ b/frontend/src/lib/paste.ts @@ -7,5 +7,5 @@ export type Paste = { user: { id: string; }; - expiresAt: string; + expires_at: string; }; diff --git a/frontend/src/routes/[pastes=paste]/[slug]/+page.svelte b/frontend/src/routes/[pastes=paste]/[slug]/+page.svelte index c672143..6186d8f 100755 --- a/frontend/src/routes/[pastes=paste]/[slug]/+page.svelte +++ b/frontend/src/routes/[pastes=paste]/[slug]/+page.svelte @@ -28,7 +28,7 @@ reportBook = data.reportBook; wrap = data.wrap; userId = data.user.id; - expires = new Date(data.expiresAt) + expires = new Date(data.expires_at); const reloadTime = () => { timeSinceStr = formatTimeSince(created as unknown as number);