Skip to content

Commit

Permalink
Fixed Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
R1c4rdCo5t4 committed Mar 28, 2024
1 parent d8709e6 commit 5d4e71f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/client/src/editor/crdt/fugue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { type Node, type Id } from '@notespace/shared/crdt/types/nodes';
import { type Style } from '@notespace/shared/crdt/types/styles';
import { FugueTree } from '@notespace/shared/crdt/FugueTree';
import { generateReplicaId } from './utils';
import { socket } from '@src/socket.io/socket';
import { socket } from '@src/socket/socket';
import { type InsertNode } from '@editor/crdt/types';
import { Cursor, Selection } from '@editor/slate.js/model/cursor';
import { isEmpty, isEqual } from 'lodash';
Expand Down
4 changes: 2 additions & 2 deletions code/server/src/controllers/websocket/events.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import onOperation from '@controllers/socket.io/document/onOperation';
import onCursorChange from '@controllers/socket.io/document/onCursorChange';
import onOperation from '@controllers/websocket/document/onOperation';
import onCursorChange from '@controllers/websocket/document/onCursorChange';
import { DocumentService, SocketHandler } from '@src/types';

export default function events(service: DocumentService): Record<string, SocketHandler> {
Expand Down
4 changes: 2 additions & 2 deletions code/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { Server } from 'socket.io';
import { config } from 'dotenv';
import cors from 'cors';
import serviceInit from '@services/documentService';
import eventsInit from '@controllers/socket.io/events';
import eventsInit from '@controllers/websocket/events';
import database from '@database/memory/operations';
import router from '@src/controllers/http/router';
import onConnection from '@controllers/socket.io/onConnection';
import onConnection from '@controllers/websocket/onConnection';

config();
const PORT = process.env.PORT || 8080;
Expand Down

0 comments on commit 5d4e71f

Please sign in to comment.