diff --git a/pages/videos/all.tsx b/pages/videos/all.tsx
index c8b9d44..8396a1b 100644
--- a/pages/videos/all.tsx
+++ b/pages/videos/all.tsx
@@ -47,7 +47,7 @@ async function allVideos() {
Hodnotenie:{' '}
{video.users.length == 0
? 'Žiadne hodnotenie'
- : `${video.rating} / ${video.users.length * 10}`}
+ : `${video.rating}`}
Autor: {video.CreatedBy.team.name} ({video.CreatedBy.name})
diff --git a/pages/videos/index.tsx b/pages/videos/index.tsx
index 10e0173..14eb359 100644
--- a/pages/videos/index.tsx
+++ b/pages/videos/index.tsx
@@ -42,7 +42,7 @@ async function myVideos(user: User) {
Hodnotenie:{' '}
{video.users.length == 0
? 'Žiadne hodnotenie'
- : `${video.rating} / ${video.users.length * 10}`}
+ : `${video.rating}`}
))
diff --git a/pages/videos/watch.tsx b/pages/videos/watch.tsx
index 561ae20..af07b01 100644
--- a/pages/videos/watch.tsx
+++ b/pages/videos/watch.tsx
@@ -43,10 +43,10 @@ async function watchVideos(user: User) {
Zadaj hodnotenie (1-10):
@@ -92,7 +92,7 @@ export async function post(req: SessionRequest): Promise {
await db.video.update({
where: { id: videoId },
data: {
- rating: { increment: rating },
+ rating: { increment: rating * rating * rating },
users: {
connect: {
id: ratedByUser.id