Skip to content

Commit 2c624b2

Browse files
committed
fix: normalize file path before invalidating its ast cache
1 parent 9734322 commit 2c624b2

File tree

1 file changed

+1
-0
lines changed
  • src/code_scanners/routes_scanner

1 file changed

+1
-0
lines changed

src/code_scanners/routes_scanner/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ export class RoutesScanner {
396396
* request types and the response types.
397397
*/
398398
async invalidate(controllerPath: string) {
399+
controllerPath = string.toUnixSlash(controllerPath)
399400
const controllerRoutes = this.#controllerRoutes[controllerPath]
400401
if (!controllerRoutes) {
401402
return

0 commit comments

Comments
 (0)