Setup thai
This commit is contained in:
parent
99b6232436
commit
8b3d74630b
4 changed files with 25 additions and 2 deletions
|
|
@ -6,4 +6,5 @@ node_modules
|
|||
*.md
|
||||
logs
|
||||
priceslot.*
|
||||
debug.*
|
||||
debug.*
|
||||
.env
|
||||
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM node:20-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y tzdata && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV TZ=Asia/Bangkok
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV DEBUG=server:*
|
||||
ENV PORT=36530
|
||||
|
||||
EXPOSE 36530
|
||||
|
||||
CMD [ "npm","start" ]
|
||||
2
app.js
2
app.js
|
|
@ -82,7 +82,7 @@ const sheet = GoogleFunctions.SpreadSheets(auth);
|
|||
// GoogleFunctions.getPriceSlotValues(sheet, "tha");
|
||||
|
||||
// v3 !!!!
|
||||
// GoogleFunctions.syncProfilePrice(sheet, "tha", false);
|
||||
GoogleFunctions.syncProfilePrice(sheet, "tha", false);
|
||||
//
|
||||
|
||||
// Test Taobin SyncText
|
||||
|
|
|
|||
|
|
@ -179,6 +179,8 @@ function getSlotFunctionByIndex(index) {
|
|||
return (price) => price - 5;
|
||||
case 8:
|
||||
return (price) => "HIDE";
|
||||
case 9:
|
||||
return (price) => price * 0.60;
|
||||
default:
|
||||
return (price) => price;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue