Files
AIclinicalresearch/git-fix-lock.ps1
HaHafeng 4088275290 fix(pkb): fix create KB and upload issues - remove simulated upload, fix department mapping, add upload modal
Fixed issues:
- Remove simulateUpload function from DashboardPage Step 3
- Map department to description field when creating KB
- Add upload modal in WorkspacePage knowledge assets tab
- Fix DocumentUpload import path (../../stores to ../stores)

Known issue: Dify API validation error during document upload (file uploaded but DB record failed, needs investigation)

Testing: KB creation works, upload dialog opens correctly
2026-01-13 13:17:20 +08:00

40 lines
588 B
PowerShell

# Fix Git lock file issue
# Remove stale lock file and retry commit
cd D:\MyCursor\AIclinicalresearch
Write-Host "Checking for Git lock file..." -ForegroundColor Yellow
$lockFile = ".git/index.lock"
if (Test-Path $lockFile) {
Write-Host "Found stale lock file. Removing..." -ForegroundColor Yellow
Remove-Item $lockFile -Force
Write-Host "Lock file removed successfully!" -ForegroundColor Green
} else {
Write-Host "No lock file found." -ForegroundColor Green
}
Write-Host ""
Write-Host "Now you can run git commands again." -ForegroundColor Cyan