From 80d6e0d65f6daf5330b2b4af26da3caca1473091 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 12 Nov 2020 14:08:17 -0300 Subject: [PATCH] [FIX] Model columns misplaced (#2640) --- app/lib/database/model/User.js | 4 ---- app/lib/database/model/servers/User.js | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/lib/database/model/User.js b/app/lib/database/model/User.js index 1b46e236..9bc1f200 100644 --- a/app/lib/database/model/User.js +++ b/app/lib/database/model/User.js @@ -14,9 +14,5 @@ export default class User extends Model { @field('avatar_etag') avatarETag; - @field('login_email_password') loginEmailPassword; - - @field('show_message_in_main_thread') showMessageInMainThread; - @json('roles', sanitizer) roles; } diff --git a/app/lib/database/model/servers/User.js b/app/lib/database/model/servers/User.js index 3eb9874d..5b4d3d65 100644 --- a/app/lib/database/model/servers/User.js +++ b/app/lib/database/model/servers/User.js @@ -21,4 +21,8 @@ export default class User extends Model { @json('roles', sanitizer) roles; @field('avatar_etag') avatarETag; + + @field('login_email_password') loginEmailPassword; + + @field('show_message_in_main_thread') showMessageInMainThread; }