refactor: generate IDs for channels

This commit is contained in:
4gray committed 2020-11-28 23:45:00 +01:00
1 parent 6a82e60adc
commit 7973b84bfd
1 file changed
+7 -1
+7 -1
View File
@@ -122,7 +122,13 @@ export class Api {
filename: name,
title: name,
count: playlist.items.length,
playlist,
playlist: {
...playlist,
items: playlist.items.map((item) => ({
id: guid(),
...item,
})),
},
importDate: new Date().toISOString(),
lastUsage: new Date().toISOString(),
favorites: [],