From 4e975971e5000db04d4da9632f83e8ddb23cae01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9d=C3=A9e=20d=27Aboville?= Date: Wed, 4 Mar 2020 17:48:22 -0500 Subject: [PATCH] Fix updateDays sorting in user_model.ts --- src/db/models/user_model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/models/user_model.ts b/src/db/models/user_model.ts index da8daa0..01e972e 100644 --- a/src/db/models/user_model.ts +++ b/src/db/models/user_model.ts @@ -279,7 +279,7 @@ export class UserModel extends Model { if (a > b) { return 1; } - if (b < a) { + if (a < b) { return -1; } return 0;