Skip to content

Commit

Permalink
remove unused fields in full_privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yooooomi committed Nov 24, 2024
1 parent 3da60df commit 39053ea
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions apps/server/src/tools/importers/full_privacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,10 @@ import {
const fullPrivacyFileSchema = z.array(
z.object({
ts: z.string(),
platform: z.string().nullable(),
ms_played: z.number(),
conn_country: z.string().nullable(),
ip_addr: z.string().nullable(),
spotify_track_uri: z.string().nullable(),
master_metadata_track_name: z.string().nullable(),
master_metadata_album_artist_name: z.string().nullable(),
master_metadata_album_album_name: z.string().nullable(),
spotify_track_uri: z.string().nullable(),
episode_name: z.string().nullable(),
episode_show_name: z.string().nullable(),
spotify_episode_uri: z.string().nullable(),
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(),
incognito_mode: z.boolean().nullable(),
}),
);

Expand Down Expand Up @@ -248,7 +234,7 @@ export class FullPrivacyImporter
);
if (!spotifyId) {
logger.warn(
`Could not get spotify id from uri: ${content.spotify_episode_uri}`,
`Could not get spotify id from uri: ${content.spotify_track_uri}`,
);
continue;
}
Expand Down

0 comments on commit 39053ea

Please sign in to comment.