From 2157bcdeddf2a34c3f779588f72c83787d9676fa Mon Sep 17 00:00:00 2001 From: maciejpedzich Date: Tue, 5 Jul 2022 13:39:15 +0200 Subject: [PATCH] Rename "Owner" model to "User" --- models/playlist.ts | 4 ++-- models/track.ts | 4 ++-- models/{owner.ts => user.ts} | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename models/{owner.ts => user.ts} (56%) diff --git a/models/playlist.ts b/models/playlist.ts index e2508c8..d998375 100644 --- a/models/playlist.ts +++ b/models/playlist.ts @@ -1,11 +1,11 @@ -import { Owner } from './owner'; +import { User } from './user'; import { Track } from './track'; export interface Playlist { description: string; num_followers: number; original_name: string; - owner: Owner; + owner: User; snapshot_id: string; tracks: Track[]; unique_name: string; diff --git a/models/track.ts b/models/track.ts index f3b317e..b0e33b5 100644 --- a/models/track.ts +++ b/models/track.ts @@ -1,4 +1,4 @@ -import { Owner } from './owner'; +import { User } from './user'; export interface Track { added_at: string; @@ -6,7 +6,7 @@ export interface Track { name: string; url: string; }; - artists: Owner[]; + artists: User[]; duration_ms: number; name: string; url: string; diff --git a/models/owner.ts b/models/user.ts similarity index 56% rename from models/owner.ts rename to models/user.ts index 223d086..d8e94be 100644 --- a/models/owner.ts +++ b/models/user.ts @@ -1,4 +1,4 @@ -export interface Owner { +export interface User { name: string; url: string; }