Use new simplified uuid.NewString() syntax

This commit is contained in:
Deluan 2021-02-01 01:22:31 -05:00
parent b47ec02f02
commit 861b406575
10 changed files with 17 additions and 32 deletions

View file

@ -78,9 +78,8 @@ func AssertPlayQueue(expected, actual *model.PlayQueue) {
func aPlayQueue(userId, current string, position int64, items ...model.MediaFile) *model.PlayQueue {
createdAt := time.Now()
updatedAt := createdAt.Add(time.Minute)
id, _ := uuid.NewRandom()
return &model.PlayQueue{
ID: id.String(),
ID: uuid.NewString(),
UserID: userId,
Current: current,
Position: position,