mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
clean: remove unused code
This commit is contained in:
1 parent
129d2ff49b
commit
d450613816
19 files changed
-282
No files matched your search
@@ -10,8 +10,6 @@ import { CLIFileExistenceChecker } from '../../containers/cli'
|
||||
export const newCommand = asyncHandler(async (req: Request, res: Response) => {
|
||||
const command = commandSchema.parse(req.body)
|
||||
|
||||
console.log('command', command)
|
||||
|
||||
const { sessionId } = req.user as any
|
||||
const session = await Session.findById(sessionId)
|
||||
if (!session) {
|
||||
@@ -43,7 +41,6 @@ export const newCommand = asyncHandler(async (req: Request, res: Response) => {
|
||||
)
|
||||
|
||||
const event = await gameSession.runCommand(command)
|
||||
console.log('event', event)
|
||||
|
||||
const c = new Command({
|
||||
...command,
|
||||
|
||||
@@ -42,7 +42,6 @@ export const sessionRouter = router({
|
||||
.mutation(async (opts) => {
|
||||
const { questId } = opts.input
|
||||
const { user } = opts.ctx
|
||||
console.log('createSession', user, questId)
|
||||
if ((await isQuestUnlocked(user.id, questId)) || config.testing.enabled) {
|
||||
const session = await createNewSession(user.id, questId)
|
||||
return sessionDetail(session)
|
||||
|
||||
Reference in new issue
Block a user