Skip to content

Commit fc9f1fc

Browse files
chore: wip
1 parent 1c00a30 commit fc9f1fc

34 files changed

+0
-136
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,10 +1153,6 @@ export async function generateModelString(
11531153
11541154
return data
11551155
}
1156-
1157-
async firstOrFail(): Promise<${modelName}Model | undefined> {
1158-
return await this.applyFirstOrFail()
1159-
}
11601156
11611157
static async firstOrFail(): Promise<${modelName}Model | undefined> {
11621158
const instance = new ${modelName}Model(undefined)

storage/framework/orm/src/models/AccessToken.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,6 @@ export class AccessTokenModel extends BaseOrm<AccessTokenModel, PersonalAccessTo
380380
return data
381381
}
382382

383-
async firstOrFail(): Promise<AccessTokenModel | undefined> {
384-
return await this.applyFirstOrFail()
385-
}
386-
387383
static async firstOrFail(): Promise<AccessTokenModel | undefined> {
388384
const instance = new AccessTokenModel(undefined)
389385

storage/framework/orm/src/models/Coupon.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,6 @@ export class CouponModel extends BaseOrm<CouponModel, CouponsTable, CouponJsonRe
420420
return data
421421
}
422422

423-
async firstOrFail(): Promise<CouponModel | undefined> {
424-
return await this.applyFirstOrFail()
425-
}
426-
427423
static async firstOrFail(): Promise<CouponModel | undefined> {
428424
const instance = new CouponModel(undefined)
429425

storage/framework/orm/src/models/Customer.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,6 @@ export class CustomerModel extends BaseOrm<CustomerModel, CustomersTable, Custom
365365
return data
366366
}
367367

368-
async firstOrFail(): Promise<CustomerModel | undefined> {
369-
return await this.applyFirstOrFail()
370-
}
371-
372368
static async firstOrFail(): Promise<CustomerModel | undefined> {
373369
const instance = new CustomerModel(undefined)
374370

storage/framework/orm/src/models/Deployment.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,6 @@ export class DeploymentModel extends BaseOrm<DeploymentModel, DeploymentsTable,
350350
return data
351351
}
352352

353-
async firstOrFail(): Promise<DeploymentModel | undefined> {
354-
return await this.applyFirstOrFail()
355-
}
356-
357353
static async firstOrFail(): Promise<DeploymentModel | undefined> {
358354
const instance = new DeploymentModel(undefined)
359355

storage/framework/orm/src/models/Error.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,6 @@ export class ErrorModel extends BaseOrm<ErrorModel, ErrorsTable, ErrorJsonRespon
310310
return data
311311
}
312312

313-
async firstOrFail(): Promise<ErrorModel | undefined> {
314-
return await this.applyFirstOrFail()
315-
}
316-
317313
static async firstOrFail(): Promise<ErrorModel | undefined> {
318314
const instance = new ErrorModel(undefined)
319315

storage/framework/orm/src/models/FailedJob.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,6 @@ export class FailedJobModel extends BaseOrm<FailedJobModel, FailedJobsTable, Fai
310310
return data
311311
}
312312

313-
async firstOrFail(): Promise<FailedJobModel | undefined> {
314-
return await this.applyFirstOrFail()
315-
}
316-
317313
static async firstOrFail(): Promise<FailedJobModel | undefined> {
318314
const instance = new FailedJobModel(undefined)
319315

storage/framework/orm/src/models/GiftCard.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,6 @@ export class GiftCardModel extends BaseOrm<GiftCardModel, GiftCardsTable, GiftCa
429429
return data
430430
}
431431

432-
async firstOrFail(): Promise<GiftCardModel | undefined> {
433-
return await this.applyFirstOrFail()
434-
}
435-
436432
static async firstOrFail(): Promise<GiftCardModel | undefined> {
437433
const instance = new GiftCardModel(undefined)
438434

storage/framework/orm/src/models/Job.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,6 @@ export class JobModel extends BaseOrm<JobModel, JobsTable, JobJsonResponse> {
310310
return data
311311
}
312312

313-
async firstOrFail(): Promise<JobModel | undefined> {
314-
return await this.applyFirstOrFail()
315-
}
316-
317313
static async firstOrFail(): Promise<JobModel | undefined> {
318314
const instance = new JobModel(undefined)
319315

storage/framework/orm/src/models/LoyaltyPoint.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,6 @@ export class LoyaltyPointModel extends BaseOrm<LoyaltyPointModel, LoyaltyPointsT
339339
return data
340340
}
341341

342-
async firstOrFail(): Promise<LoyaltyPointModel | undefined> {
343-
return await this.applyFirstOrFail()
344-
}
345-
346342
static async firstOrFail(): Promise<LoyaltyPointModel | undefined> {
347343
const instance = new LoyaltyPointModel(undefined)
348344

0 commit comments

Comments
 (0)