Skip to content

Commit

Permalink
Solves #230
Browse files Browse the repository at this point in the history
  • Loading branch information
psanders committed Nov 14, 2021
1 parent 33afdd9 commit eb9a834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mods/projects/src/service/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class ProjectsServer implements IProjectsServer {
try {
assertNotEmpty("name", call.request.getName());

const ref = objectid() + "";
// Prefixing Project's accessKeyID to avoid confusion with user accounts
const ref = "PJ" + objectid();
const userRef = getAccessKeyId(call);
const project = new ProjectsPB.Project();

Expand Down
2 changes: 1 addition & 1 deletion mods/users/src/service/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class UsersServer implements IUsersServer {
);
}

const ref = objectid() + "";
const ref = "US" + objectid();
const user = new UserPB.User();

user.setRef(ref);
Expand Down

0 comments on commit eb9a834

Please sign in to comment.