Skip to content

Commit d47c525

Browse files
committed
fix typo
1 parent 91aa930 commit d47c525

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/getLeetCode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import axios from 'axios'
44

5-
const getLeetcode = async (leetcode_id) => {
5+
const getLeetCode = async (leetcode_id) => {
66
const response = await axios.get(
77
`http://8.137.12.168:3000/userProfile/${leetcode_id}`
88
)
99
return response.data
1010
}
1111

12-
export default getLeetcode
12+
export default getLeetCode

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import getActivityUser from './getActivityUser.js'
2-
import getLeetcode from './getLeetcode.js'
2+
import getLeetCode from './getLeetCode.js'
33
import {
44
setLeetCodeHistory,
55
getLeetCodeHistoryCount,
@@ -10,7 +10,7 @@ import sendMessage from './sendMessage.js'
1010
const userList = await getActivityUser()
1111
for (const user of userList) {
1212
console.log(`开始获取Leetcode数据:${JSON.stringify(user)}`)
13-
const leetcode_data = await getLeetcode(user.leetcode_id)
13+
const leetcode_data = await getLeetCode(user.leetcode_id)
1414
if (Object.keys(leetcode_data).length === 0) {
1515
console.log(`获取Leetcode数据失败:${user.name},${user.leetcode_id}`)
1616
continue

0 commit comments

Comments
 (0)