File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -8222,7 +8222,7 @@ func (q *FakeQuerier) InsertWorkspaceBuildParameters(_ context.Context, arg data
8222
8222
return nil
8223
8223
}
8224
8224
8225
- func (q * FakeQuerier ) InsertWorkspaceModule (ctx context.Context , arg database.InsertWorkspaceModuleParams ) (database.WorkspaceModule , error ) {
8225
+ func (q * FakeQuerier ) InsertWorkspaceModule (_ context.Context , arg database.InsertWorkspaceModuleParams ) (database.WorkspaceModule , error ) {
8226
8226
err := validateDatabaseType (arg )
8227
8227
if err != nil {
8228
8228
return database.WorkspaceModule {}, err
@@ -8231,15 +8231,7 @@ func (q *FakeQuerier) InsertWorkspaceModule(ctx context.Context, arg database.In
8231
8231
q .mutex .Lock ()
8232
8232
defer q .mutex .Unlock ()
8233
8233
8234
- workspaceModule := database.WorkspaceModule {
8235
- ID : arg .ID ,
8236
- JobID : arg .JobID ,
8237
- Transition : arg .Transition ,
8238
- Source : arg .Source ,
8239
- Version : arg .Version ,
8240
- Key : arg .Key ,
8241
- CreatedAt : arg .CreatedAt ,
8242
- }
8234
+ workspaceModule := database .WorkspaceModule (arg )
8243
8235
q .workspaceModules = append (q .workspaceModules , workspaceModule )
8244
8236
return workspaceModule , nil
8245
8237
}
You can’t perform that action at this time.
0 commit comments