Skip to content

Commit

Permalink
Make user implement Identified
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Dec 20, 2024
1 parent d3c28e2 commit 6b3e5e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/main/java/io/papermc/hangar/model/api/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.fasterxml.jackson.annotation.JsonProperty;
import io.papermc.hangar.db.customtypes.JSONB;
import io.papermc.hangar.model.Identified;
import io.papermc.hangar.model.Model;
import io.papermc.hangar.model.Named;
import io.papermc.hangar.model.common.roles.GlobalRole;
Expand All @@ -11,7 +12,7 @@
import java.util.List;
import java.util.Objects;

public class User extends Model implements Named {
public class User extends Model implements Named, Identified {

private final long id;
private final String name;
Expand All @@ -38,6 +39,7 @@ public User(final OffsetDateTime createdAt, final long id, final String name, fi
this.socials = socials;
}

@Override
public long getId() {
return this.id;
}
Expand Down

0 comments on commit 6b3e5e4

Please sign in to comment.