From 7b41b1fdfa96fce2b8326500a3f739fd02ba258f Mon Sep 17 00:00:00 2001 From: Timothee Date: Thu, 19 Oct 2023 12:20:55 +0200 Subject: [PATCH] full privacy importer more compliant --- server/src/tools/importers/full_privacy.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/tools/importers/full_privacy.ts b/server/src/tools/importers/full_privacy.ts index 45aa73b9..91a53650 100644 --- a/server/src/tools/importers/full_privacy.ts +++ b/server/src/tools/importers/full_privacy.ts @@ -25,8 +25,8 @@ import { const fullPrivacyFileSchema = z.array( z.object({ ts: z.string(), - username: z.string(), - platform: z.string(), + username: z.string().nullable(), + platform: z.string().nullable(), ms_played: z.number(), conn_country: z.string().nullable(), ip_addr_decrypted: z.string().nullable(), @@ -38,9 +38,9 @@ const fullPrivacyFileSchema = z.array( episode_name: z.string().nullable(), episode_show_name: z.string().nullable(), spotify_episode_uri: z.string().nullable(), - reason_start: z.string(), - reason_end: z.string(), - shuffle: z.boolean(), + reason_start: z.string().nullable(), + reason_end: z.string().nullable(), + shuffle: z.boolean().nullable(), skipped: z.boolean().nullable(), offline: z.boolean().nullable(), offline_timestamp: z.number().nullable(),