This commit is contained in:
Michael Fatemi 2021-04-10 19:03:39 -04:00
commit fc122b5ac8
3 changed files with 3 additions and 2 deletions

View File

@ -92,6 +92,6 @@ export async function getAccountIDFromIonCode(code: string) {
if (user == null) {
return await registerUserFromIonProfile(profile);
} else {
return user.id;
return user.uuid;
}
}

View File

@ -1,6 +1,7 @@
import { model, Schema } from 'mongoose';
const UserSchema: Schema = new Schema({
uuid: { type: String, required: true },
email: { type: String, required: true },
username: { type: String, required: true },
first_name: { type: String, required: true },

View File

@ -5,7 +5,7 @@ namespace Carpool {
}
export interface User {
id: string;
uuid: string;
email: string;
username: string;
first_name: string;