Skip to content

Commit

Permalink
change UserSchema to IUserSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
pogi7 committed Oct 24, 2023
1 parent 447a6af commit 4403ce3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/account/IUserSchema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface UserSchema {
export interface IUserSchema {
creationDate: {
value: number;
};
Expand Down
4 changes: 2 additions & 2 deletions src/account/account.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import express from "express";
import { UserSchema } from "./IUserSchema";
import { IUserSchema } from "./IUserSchema";
import cors from "cors";
import { MongoClient } from "mongodb";
import { config } from "./config";
Expand Down Expand Up @@ -43,7 +43,7 @@ router.get("/register", (req: any, res: any) => {
async function registerAccount() {
try {
// Create a new document
let accountDocument: UserSchema = {
let accountDocument: IUserSchema = {
creationDate: {
value: Date.now()
},
Expand Down

0 comments on commit 4403ce3

Please sign in to comment.