File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -8261,7 +8261,7 @@ func (q *FakeQuerier) InsertWorkspaceBuildParameters(_ context.Context, arg data
8261
8261
return nil
8262
8262
}
8263
8263
8264
- func (q * FakeQuerier ) InsertWorkspaceModule (ctx context.Context , arg database.InsertWorkspaceModuleParams ) (database.WorkspaceModule , error ) {
8264
+ func (q * FakeQuerier ) InsertWorkspaceModule (_ context.Context , arg database.InsertWorkspaceModuleParams ) (database.WorkspaceModule , error ) {
8265
8265
err := validateDatabaseType (arg )
8266
8266
if err != nil {
8267
8267
return database.WorkspaceModule {}, err
@@ -8270,15 +8270,7 @@ func (q *FakeQuerier) InsertWorkspaceModule(ctx context.Context, arg database.In
8270
8270
q .mutex .Lock ()
8271
8271
defer q .mutex .Unlock ()
8272
8272
8273
- workspaceModule := database.WorkspaceModule {
8274
- ID : arg .ID ,
8275
- JobID : arg .JobID ,
8276
- Transition : arg .Transition ,
8277
- Source : arg .Source ,
8278
- Version : arg .Version ,
8279
- Key : arg .Key ,
8280
- CreatedAt : arg .CreatedAt ,
8281
- }
8273
+ workspaceModule := database .WorkspaceModule (arg )
8282
8274
q .workspaceModules = append (q .workspaceModules , workspaceModule )
8283
8275
return workspaceModule , nil
8284
8276
}
You can’t perform that action at this time.
0 commit comments