Skip to content

Commit 067cbfe

Browse files
chore: wip
1 parent d6a1194 commit 067cbfe

File tree

10 files changed

+0
-10
lines changed

10 files changed

+0
-10
lines changed

storage/framework/core/actions/src/orm/generate-model.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,6 @@ async function generateModelString(
964964
protected hasSelect: boolean
965965
${declareFields}
966966
constructor(${formattedModelName}: Partial<${modelName}Type> | null) {
967-
this.${formattedModelName} = ${formattedModelName}
968967
${constructorFields}
969968
970969
this.query = db.selectFrom('${tableName}')

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export class AccessTokenModel {
6767
public team_id: number | undefined
6868

6969
constructor(accesstoken: Partial<AccessTokenType> | null) {
70-
this.accesstoken = accesstoken
7170
this.id = accesstoken?.id
7271
this.name = accesstoken?.name
7372
this.token = accesstoken?.token

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export class DeploymentModel {
7373
public user_id: number | undefined
7474

7575
constructor(deployment: Partial<DeploymentType> | null) {
76-
this.deployment = deployment
7776
this.id = deployment?.id
7877
this.commit_sha = deployment?.commit_sha
7978
this.commit_message = deployment?.commit_message

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export class PostModel {
6363
public user_id: number | undefined
6464

6565
constructor(post: Partial<PostType> | null) {
66-
this.post = post
6766
this.id = post?.id
6867
this.title = post?.title
6968
this.body = post?.body

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export class ProjectModel {
6464
public status: string | undefined
6565

6666
constructor(project: Partial<ProjectType> | null) {
67-
this.project = project
6867
this.id = project?.id
6968
this.name = project?.name
7069
this.description = project?.description

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export class ReleaseModel {
5858
public version: string | undefined
5959

6060
constructor(release: Partial<ReleaseType> | null) {
61-
this.release = release
6261
this.id = release?.id
6362
this.version = release?.version
6463

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export class SubscriberModel {
6060
public user_id: number | undefined
6161

6262
constructor(subscriber: Partial<SubscriberType> | null) {
63-
this.subscriber = subscriber
6463
this.id = subscriber?.id
6564
this.subscribed = subscriber?.subscribed
6665
this.user_id = subscriber?.user_id

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export class SubscriberEmailModel {
5858
public email: string | undefined
5959

6060
constructor(subscriberemail: Partial<SubscriberEmailType> | null) {
61-
this.subscriberemail = subscriberemail
6261
this.id = subscriberemail?.id
6362
this.email = subscriberemail?.email
6463

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export class TeamModel {
7979
public user_id: number | undefined
8080

8181
constructor(team: Partial<TeamType> | null) {
82-
this.team = team
8382
this.id = team?.id
8483
this.name = team?.name
8584
this.company_name = team?.company_name

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export class UserModel {
7979
public post_id: number | undefined
8080

8181
constructor(user: Partial<UserType> | null) {
82-
this.user = user
8382
this.id = user?.id
8483
this.two_factor_secret = user?.two_factor_secret
8584
this.name = user?.name

0 commit comments

Comments
 (0)