Skip to content

Commit 6137244

Browse files
committed
updates cronjob workflow
1 parent ae6cb32 commit 6137244

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/schema.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
npm run db:pull
2424
npx @biomejs/biome format --write ./database/migrations
2525
26+
- name: Fix Import Paths
27+
run: |
28+
# Replace "./schema" with "./schema.js" (Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext')
29+
sed -i 's|"./schema"|"./schema.js"|g' ./database/migrations/relations.ts
30+
2631
- name: Create Pull Request
2732
id: cpr
2833
uses: peter-evans/create-pull-request@v6

database/migrations/relations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
githubAppInstallationRepository,
1010
chatConversationShare,
1111
chatConversationShareWhitelistEntry,
12-
} from "./schema";
12+
} from "./schema.js";
1313

1414
export const chatConversationRelations = relations(
1515
chatConversation,

0 commit comments

Comments
 (0)