Skip to content

Commit

Permalink
feat: add tool convert all current user's avatar url to Firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lcaohoanq committed Jul 8, 2024
1 parent 96cf914 commit 4180f9f
Show file tree
Hide file tree
Showing 7 changed files with 1,257 additions and 1,145 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"dependencies": {
"@types/request": "^2.48.12",
"axios": "^1.7.2",
"cookie-parser": "^1.4.6",
"cookie-session": "^2.1.0",
"cors": "^2.8.5",
Expand Down
7 changes: 5 additions & 2 deletions src/constants/user.type.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { ObjectId } from "mongodb";
import { UserRole, UserVerifyStatus } from "~/modules/user/user.enum";
import User from "~/modules/user/user.schema";

export type UserList = {
export interface UserList {
_id: ObjectId;
first_name: string;
last_name: string;
phone_number: string;
email: string;
role: UserRole;
status: UserVerifyStatus;
};
}

export type UserAvatarInfo = Pick<User, "_id" | "avatar_url">;
Loading

0 comments on commit 4180f9f

Please sign in to comment.