Skip to content

Commit

Permalink
feat : created_at 오름차순 정렬 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellol77 committed Jul 29, 2024
1 parent b394cad commit 77649bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ const io = new Server(server, {
io.on("connection", async (socket) => {
console.log("User connected");

const [rows] = await connection.execute("SELECT * FROM messages");
const [rows] = await connection.execute(
"SELECT * FROM messages ORDER BY created_at ASC"
);

socket.emit("getBubbles", rows);

Expand Down
Empty file removed backend/src/routes/bubbles.js
Empty file.
Empty file removed backend/src/routes/socket.js
Empty file.

0 comments on commit 77649bf

Please sign in to comment.