mirror of
https://github.com/Discreetly/server.git
synced 2026-04-17 03:00:55 -04:00
error codes and updated mock room id
This commit is contained in:
@@ -36,7 +36,7 @@ export default function Mock(io: SocketIOServer) {
|
||||
setInterval(() => {
|
||||
const message: MessageI = {
|
||||
id: faker.number.bigInt().toString(),
|
||||
room: BigInt('7458174823225695762087107782399226439860424529052640186229953289032606624581'),
|
||||
room: BigInt('19183659077143681680643781146130632794891748840418536690687883939418258252592'),
|
||||
message: picker.pick(),
|
||||
timestamp: Date.now().toString(),
|
||||
epoch: Math.floor(Date.now() / 10000)
|
||||
|
||||
@@ -168,6 +168,7 @@ export function initExpressEndpoints(
|
||||
}
|
||||
res.status(201).json({ status: `Created group ${groupName}`, loadedRooms });
|
||||
}
|
||||
res.status(401).json({ status: 'Unauthorized' });
|
||||
});
|
||||
|
||||
app.post('/room/add', (req, res) => {
|
||||
@@ -180,6 +181,7 @@ export function initExpressEndpoints(
|
||||
res.status(201).json({ status: `Created room ${roomName}`, roomGroups });
|
||||
});
|
||||
}
|
||||
res.status(401).json({ status: 'Unauthorized' });
|
||||
});
|
||||
|
||||
app.post('/group/createcode', (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user