mirror of
https://github.com/myfatemi04/wheelshare-old-backend.git
synced 2025-04-21 12:10:17 -04:00
Merge branch 'main' of https://github.com/myfatemi04/Carpool-Backend into main
This commit is contained in:
commit
fc122b5ac8
|
@ -92,6 +92,6 @@ export async function getAccountIDFromIonCode(code: string) {
|
|||
if (user == null) {
|
||||
return await registerUserFromIonProfile(profile);
|
||||
} else {
|
||||
return user.id;
|
||||
return user.uuid;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 },
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Carpool {
|
|||
}
|
||||
|
||||
export interface User {
|
||||
id: string;
|
||||
uuid: string;
|
||||
email: string;
|
||||
username: string;
|
||||
first_name: string;
|
||||
|
|
Loading…
Reference in New Issue
Block a user