Skip to content

Commit

Permalink
Removed redundant variables in index.ts
Browse files Browse the repository at this point in the history
After moving displayName and userIcon from ConnectedUser to UserConfig,
an error in index.ts occurred. Removed this redundancy.
  • Loading branch information
eris6 committed Sep 12, 2024
1 parent ae31851 commit 802c676
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ io.on("connection", async (socket: any) => {
const defaultConnectedUser: ConnectedUser = {
uid: "UID",
socketId: socket.id,
displayName: "DISPLAY NAME",
userIcon: {
foregroundImage: "FOREGROUND IMG",
backgroundImage: "BACKGROUND IMG",
},
location: {
lat: 9999,
lon: 9999,
Expand Down Expand Up @@ -196,11 +191,6 @@ app.post("/users", async (req, res) => {
const status = await createUser({
uid: req.body.uid,
socketId: req.body.socketId,
displayName: req.body.displayName,
userIcon: {
foregroundImage: req.body.userIcon.foregroundImage,
backgroundImage: req.body.userIcon.backgroundImage,
},
location: {
lat: Number(req.body.location.lat),
lon: Number(req.body.location.lon),
Expand Down

0 comments on commit 802c676

Please sign in to comment.