last game date?
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
||||||
"format": "prettier --write src/",
|
"format": "prettier --write src/",
|
||||||
"dev": "npx tsc && node dist/app.js",
|
"dev": "npx ts-node-dev src/app.ts",
|
||||||
"build": "npx tsc"
|
"build": "npx tsc"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export function addCharacterApis(app, jsonParser) {
|
|||||||
app.get('/api/character/:characterId', async (req, res) => {
|
app.get('/api/character/:characterId', async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const character = await Character.findOne({
|
const character = await Character.findOne({
|
||||||
|
attributes: ["id", "characterName", "playerName", "role", "creationDate", "status"],
|
||||||
where: { id: req.params['characterId'] }
|
where: { id: req.params['characterId'] }
|
||||||
})
|
})
|
||||||
if (character) {
|
if (character) {
|
||||||
|
|||||||
Reference in New Issue
Block a user