From a3d9db4c029e3a8b6196a9272df0ab2d7c699b0a Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 12 Feb 2024 12:04:43 -0800
Subject: feat(settingssync): last push pull times

---
 src/routes/+layout.svelte | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 64f3d28d..dc3f371b 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -24,6 +24,7 @@
 	import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit';
 	import subtitles from '$lib/Data/Static/subtitles.json';
 	import settingsSyncPulled from '$stores/settingsSyncPulled';
+	import settingsSyncTimes from '$stores/settingsSyncTimes';
 
 	injectSpeedInsights();
 
@@ -82,6 +83,10 @@
 							console.log('Pulled remote configuration');
 							settings.set(data.configuration);
 							settingsSyncPulled.set(true);
+							settingsSyncTimes.set({
+								lastPull: new Date(),
+								lastPush: new Date(data.updated_at + 'Z')
+							});
 						}
 					});
 			});
-- 
cgit v1.2.3

