Skip to content

Commit 6f730a4

Browse files
committed
chore: wip
1 parent b0bfd36 commit 6f730a4

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,13 +1332,13 @@ export async function generateModelString(
13321332
13331333
async setDefaultPaymentMethod(pmId: number): Promise<Stripe.Response<Stripe.Customer>> {
13341334
const updatedCustomer = await managePaymentMethod.setDefaultPaymentMethod(this, pmId)
1335-
1335+
13361336
return updatedCustomer
13371337
}
13381338
13391339
async setUserDefaultPaymentMethod(paymentMethodId: string): Promise<Stripe.Response<Stripe.Customer>> {
13401340
const updatedCustomer = await managePaymentMethod.setUserDefaultPayment(this, paymentMethodId)
1341-
1341+
13421342
return updatedCustomer
13431343
}
13441344
@@ -1441,11 +1441,11 @@ export async function generateModelString(
14411441
async isIncomplete(type: string): Promise<boolean> {
14421442
return await manageSubscription.isIncomplete(this, type)
14431443
}
1444-
1444+
14451445
async paymentMethods(cardType?: string): Promise<PaymentMethodModel[]> {
14461446
return await managePaymentMethod.listPaymentMethods(this, cardType)
14471447
}
1448-
1448+
14491449
async newSubscriptionInvoice(
14501450
type: string,
14511451
lookupKey: string,
@@ -1466,7 +1466,7 @@ export async function generateModelString(
14661466
14671467
return { subscription, paymentIntent }
14681468
}
1469-
1469+
14701470
async updateSubscription(
14711471
type: string,
14721472
lookupKey: string,
@@ -1495,10 +1495,10 @@ export async function generateModelString(
14951495
const defaultOptions: Partial<Stripe.SetupIntentCreateParams> = {
14961496
metadata: options.metadata,
14971497
}
1498-
1498+
14991499
// Merge any additional provided options
15001500
const mergedOptions = { ...defaultOptions, ...options }
1501-
1501+
15021502
// Call Stripe to create the SetupIntent
15031503
return await manageSetupIntent.create(this, mergedOptions)
15041504
}
@@ -1691,7 +1691,7 @@ export async function generateModelString(
16911691
}
16921692
next_cursor: number | null
16931693
}
1694-
1694+
16951695
export type ${modelName}Type = Selectable<${formattedTableName}Table>
16961696
export type New${modelName} = Partial<Insertable<${formattedTableName}Table>>
16971697
export type ${modelName}Update = Updateable<${formattedTableName}Table>
@@ -1765,7 +1765,7 @@ export async function generateModelString(
17651765
17661766
if (!model)
17671767
return undefined
1768-
1768+
17691769
const instance = new ${modelName}Model(null)
17701770
17711771
const result = await instance.mapWith(model)
@@ -1852,7 +1852,7 @@ export async function generateModelString(
18521852
const instance = new ${modelName}Model(null)
18531853
18541854
let models
1855-
1855+
18561856
if (instance.hasSelect) {
18571857
${instanceSoftDeleteStatements}
18581858
@@ -1870,7 +1870,7 @@ export async function generateModelString(
18701870
18711871
return new ${modelName}Model(results)
18721872
}))
1873-
1873+
18741874
return data
18751875
}
18761876
@@ -2031,7 +2031,7 @@ export async function generateModelString(
20312031
)
20322032
20332033
${uuidQueryMany}
2034-
2034+
20352035
await db.insertInto('${tableName}')
20362036
.values(filteredValues)
20372037
.executeTakeFirst()
@@ -2058,7 +2058,7 @@ export async function generateModelString(
20582058
${instanceSoftDeleteStatementsUpdateFrom}
20592059
20602060
${mittDeleteStatement}
2061-
2061+
20622062
return await db.deleteFrom('${tableName}')
20632063
.where('id', '=', id)
20642064
.execute()
@@ -2079,7 +2079,7 @@ export async function generateModelString(
20792079
}
20802080
20812081
this.selectFromQuery = this.selectFromQuery.where(column, operator, value)
2082-
2082+
20832083
this.updateFromQuery = this.updateFromQuery.where(column, operator, value)
20842084
this.deleteFromQuery = this.deleteFromQuery.where(column, operator, value)
20852085
@@ -2404,15 +2404,15 @@ export async function generateModelString(
24042404
24052405
with(relations: string[]): ${modelName}Model {
24062406
this.withRelations = relations
2407-
2407+
24082408
return this
24092409
}
24102410
24112411
static with(relations: string[]): ${modelName}Model {
24122412
const instance = new ${modelName}Model(null)
24132413
24142414
instance.withRelations = relations
2415-
2415+
24162416
return instance
24172417
}
24182418
@@ -2857,7 +2857,7 @@ async function ensureCodeStyle(): Promise<void> {
28572857
const exitCode = await proc.exited
28582858

28592859
if (exitCode !== 0) {
2860-
log.debug('There was an error fixing your code style but we are ignoring it because we fixed the auto-generated code already. Run bunx eslint . --fix to fix the rest of the code.')
2860+
log.debug('There was an error fixing your code style but we are ignoring it because we fixed the auto-generated code already. Run `bunx eslint . --fix` to fix the rest of the code.')
28612861
}
28622862
else {
28632863
log.debug('Code style fixed successfully.')

0 commit comments

Comments
 (0)