Skip to content

Commit ab104b6

Browse files
chore: wip
1 parent fd92210 commit ab104b6

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

storage/framework/core/orm/src/utils.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,12 @@ export function getTableName(model: Model, modelPath: string): string {
4141
}
4242

4343
export function getPivotTableName(formattedModelName: string, modelRelationTable: string): string {
44-
// Create an array of the model names
4544
const models = [formattedModelName, modelRelationTable]
4645

47-
// Sort the array alphabetically
4846
models.sort()
4947

5048
models[0] = singular(models[0] || '')
5149

52-
// Join the sorted array with an underscore
5350
const pivotTableName = models.join('_')
5451

5552
return pivotTableName

storage/framework/core/queue/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ export class Job {
2222
}
2323
}
2424

25-
export { runJob } from './run'
25+
export { runJob } from './job'

storage/framework/core/queue/src/job.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import process from 'node:process'
22
import { runAction } from '@stacksjs/actions'
33
import { log } from '@stacksjs/cli'
4-
import { projectPath } from '@stacksjs/path'
4+
import { appPath, projectPath } from '@stacksjs/path'
55

66
interface JobConfig {
77
handle?: () => Promise<void>
@@ -39,7 +39,7 @@ export interface JobOptions {
3939
export async function runJob(name: string, options: JobOptions = {}): Promise<void> {
4040
log.info(`Running job: ${name}`)
4141
try {
42-
const jobModule = await import(projectPath(`Jobs/${name}.ts`))
42+
const jobModule = await import(appPath(`Jobs/${name}.ts`))
4343
const job = jobModule.default as JobConfig
4444

4545
if (options.payload) {

0 commit comments

Comments
 (0)