mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Adding date to submitted questions, sqlite insert fixes
This commit is contained in:
@@ -31,9 +31,14 @@ makeNextSubmodule() {
|
|||||||
npm audit fix
|
npm audit fix
|
||||||
npm run export
|
npm run export
|
||||||
popd
|
popd
|
||||||
ln -sf "$PWD/submodules/${1}/out" "$PWD/nextStatic/${2}"
|
linkTarget="$PWD/nextStatic/${2}"
|
||||||
|
if [ ! -f "${linkTarget}" ]; then
|
||||||
|
ln -sf "$PWD/submodules/${1}/out" "${linkTarget}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
./setup.sh
|
||||||
|
|
||||||
log "Making project"
|
log "Making project"
|
||||||
npm install
|
npm install
|
||||||
npm audit fix
|
npm audit fix
|
||||||
|
@@ -21,11 +21,9 @@ elif [ "$1" == "stop" ]; then
|
|||||||
docker stop $(getContainerId)
|
docker stop $(getContainerId)
|
||||||
elif [ "$1" == "start" ]; then
|
elif [ "$1" == "start" ]; then
|
||||||
# --entrypoint bash \
|
# --entrypoint bash \
|
||||||
scripts/setup.sh
|
|
||||||
docker start -i $(getContainerId)
|
docker start -i $(getContainerId)
|
||||||
elif [ "$1" == "run" ]; then
|
elif [ "$1" == "run" ]; then
|
||||||
# --entrypoint bash \
|
# --entrypoint bash \
|
||||||
scripts/setup.sh
|
|
||||||
docker run -it \
|
docker run -it \
|
||||||
-p 8080:80 \
|
-p 8080:80 \
|
||||||
--mount src="$(pwd)/stats",target=/server/stats,type=bind \
|
--mount src="$(pwd)/stats",target=/server/stats,type=bind \
|
||||||
|
@@ -131,7 +131,7 @@ function setup(data: SubmoduleData): void {
|
|||||||
const msgObj = {
|
const msgObj = {
|
||||||
sender: userid,
|
sender: userid,
|
||||||
reciever: parseInt(reciever),
|
reciever: parseInt(reciever),
|
||||||
msg: msg,
|
msg: msg.replace(/'/g, '').replace(/;/g, ''),
|
||||||
type: type || 'text',
|
type: type || 'text',
|
||||||
date: new Date().getTime(),
|
date: new Date().getTime(),
|
||||||
unread: 1,
|
unread: 1,
|
||||||
|
@@ -214,7 +214,10 @@ function processIncomingRequestUsingDb(
|
|||||||
3
|
3
|
||||||
)
|
)
|
||||||
logger.DebugLog(currentQuestion, 'isadding', 3)
|
logger.DebugLog(currentQuestion, 'isadding', 3)
|
||||||
addQuestion(qdb.data, sName, currentQuestion)
|
addQuestion(qdb.data, sName, {
|
||||||
|
...currentQuestion,
|
||||||
|
date: new Date(),
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
currWrites++
|
currWrites++
|
||||||
|
Submodule submodules/qmining-page updated: 11e7c5c567...2b491e6bec
Reference in New Issue
Block a user