Setup thai
This commit is contained in:
parent
99b6232436
commit
8b3d74630b
4 changed files with 25 additions and 2 deletions
|
|
@ -7,3 +7,4 @@ node_modules
|
||||||
logs
|
logs
|
||||||
priceslot.*
|
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");
|
// GoogleFunctions.getPriceSlotValues(sheet, "tha");
|
||||||
|
|
||||||
// v3 !!!!
|
// v3 !!!!
|
||||||
// GoogleFunctions.syncProfilePrice(sheet, "tha", false);
|
GoogleFunctions.syncProfilePrice(sheet, "tha", false);
|
||||||
//
|
//
|
||||||
|
|
||||||
// Test Taobin SyncText
|
// Test Taobin SyncText
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,8 @@ function getSlotFunctionByIndex(index) {
|
||||||
return (price) => price - 5;
|
return (price) => price - 5;
|
||||||
case 8:
|
case 8:
|
||||||
return (price) => "HIDE";
|
return (price) => "HIDE";
|
||||||
|
case 9:
|
||||||
|
return (price) => price * 0.60;
|
||||||
default:
|
default:
|
||||||
return (price) => price;
|
return (price) => price;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue