Skip to content

Commit

Permalink
capitalize project list chain name
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce authored and Bruce committed Sep 3, 2021
1 parent 26f6289 commit 59b58eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/api/src/service/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ class Project {
const re = await Stat.proStatDaily(pro.chain, pro.pid)
let ptmp = { ...(pro as any)['dataValues'] } as ProInfo
ptmp.stat = re
ptmp.chain = ptmp.chain.charAt(0).toUpperCase() + ptmp.chain.slice(1)
// log.debug(`project info temp: %o`, ptmp)
res.push(ptmp)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/job/src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default class HttpUtil {
}
}

static async getProjecList(userId: number): Promise<ProAttr[]> {
static async getProjectList(userId: number): Promise<ProAttr[]> {
try {
const re = JSON.parse(await this.post(baseUrl + '/project/list', {
userId
Expand Down
2 changes: 1 addition & 1 deletion packages/job/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function userStatUpdate(): PVoidT {

async function projectStatUpdate(userId: number): PVoidT {
log.info(`ready to set projects status[active] of user[${userId}]`)
const pros = await Http.getProjecList(userId)
const pros = await Http.getProjectList(userId)
pros.forEach(async (pro: ProAttr) => {
if (pro.status === 'suspend') {
Http.updateProjectStatus(pro.id, 'active')
Expand Down

0 comments on commit 59b58eb

Please sign in to comment.