Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대선
/
Recruitment_Information_chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김대선
2021-06-05 20:34:54 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e12df2d57e2c327e0096cb5ce317153a6b18770f
e12df2d5
1 parent
c564fa0c
데이터 저장이 안되는 오류 수정
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
app.js
functions/dataFunctions.js
app.js
View file @
e12df2d
...
...
@@ -15,7 +15,7 @@ const data = require('./functions/dataFunctions')
const
find
=
require
(
'./functions/findFunction'
)
// 0초 0분 0시 아무날 아무달 아무년
const
saveData
=
schedule
.
scheduleJob
(
'55
49 19
* * *'
,
data
.
save
)
const
saveData
=
schedule
.
scheduleJob
(
'55
29 20
* * *'
,
data
.
save
)
var
app
=
express
();
app
.
use
(
bodyParser
.
json
());
...
...
functions/dataFunctions.js
View file @
e12df2d
...
...
@@ -49,7 +49,6 @@ const save = async()=> {
temp
=
"companyName : "
+
i
.
companyName
string
=
string
+
temp
+
"\n"
}
data
=
await
functions
.
getNaverFunction
()
temp
=
""
for
(
let
i
of
data
){
...
...
@@ -62,7 +61,7 @@ const save = async()=> {
temp
=
"companyName : "
+
i
.
companyName
string
=
string
+
temp
+
"\n"
}
data
=
await
functions
.
getProgrammersFunction
()
temp
=
""
for
(
let
i
of
data
){
...
...
@@ -75,6 +74,7 @@ const save = async()=> {
temp
=
"companyName : "
+
i
.
companyName
string
=
string
+
temp
+
"\n"
}
const
today
=
new
Date
()
fs
.
writeFile
(
`./datas/
${
today
.
getFullYear
()}
.
${
today
.
getMonth
()}
.
${
today
.
getDate
()}
`
,
string
,
'utf-8'
,
(
err
)
=>
{
if
(
err
){
...
...
Please
register
or
login
to post a comment