Cloud sync: small fix

This commit is contained in:
M66B 2023-01-16 19:29:10 +01:00
parent b7e7c8e988
commit 863d19618d
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public class CloudSync {
continue;
}
if ("account".equals(s.entity) && "auth".equals(s.reference)) {
if ("account".equals(s.entity) && "auth".equals(s.action)) {
EntityAccount account = db.account().getAccountByUUID(s.reference);
if (account == null || account.auth_type != AUTH_TYPE_PASSWORD) {
if (account == null)
@ -99,7 +99,7 @@ public class CloudSync {
}
}
if ("identity".equals(s.entity) && "auth".equals(s.reference)) {
if ("identity".equals(s.entity) && "auth".equals(s.action)) {
EntityIdentity identity = db.identity().getIdentityByUUID(s.reference);
if (identity == null || identity.auth_type != AUTH_TYPE_PASSWORD) {
if (identity == null)