Skip to content

Commit

Permalink
修复应用配置的同步地址未展示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed Jun 2, 2024
1 parent 6f4bfff commit c6a90aa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-candles-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opendoc/backend": patch
---

修复应用配置的同步地址未展示的问题
3 changes: 3 additions & 0 deletions app/backend/src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export class AppService {

async registerDocs() {
const docsDir = path.join(process.cwd(), '../../docs')
console.log('==========================')
console.log(docsDir)
console.log('==========================')

const tgzStream = new compressing.tgz.Stream()
tgzStream.addEntry(docsDir, { ignoreBase: true })
Expand Down
1 change: 0 additions & 1 deletion app/backend/src/modules/api-file/api-file.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export class ApiFileService {
return apiFiles
}


async hasDiff(version: SheetVersion, files: FileRawDTO[]): Promise<boolean> {
const revisionHash = (await import('rev-hash')).default

Expand Down
1 change: 0 additions & 1 deletion app/backend/src/modules/sheet/entity/sheet.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export class Sheet extends BaseEntity {
@ApiProperty({
type: () => SheetPullCrontab,
})
// @ApiHideProperty()
@OneToOne({
entity: () => SheetPullCrontab,
ref: true,
Expand Down
1 change: 1 addition & 0 deletions app/backend/src/modules/sheet/sheet.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export class SheetService {
async querySheets(dto: QuerySheetsDTO): Promise<ResponseOfQuerySheetsDTO> {
const qb = this.sheetRepo.createQueryBuilder('sheet')
.select('*')
.leftJoinAndSelect('sheet.pullCrontab', 'pullCrontab')

if (dto.title) {
void qb.andWhere({ title: dto.title })
Expand Down

0 comments on commit c6a90aa

Please sign in to comment.