Fix references to org ID using platform org
I broke these a while ago and didn't realize because the compiler doesn't catch them.
This commit is contained in:
parent
5fd85d7052
commit
ab5840dd54
3 changed files with 4 additions and 4 deletions
|
|
@ -94,7 +94,7 @@ func listSignal(ctx context.Context, r *http.Request, user platform.User, query
|
|||
|
||||
/*
|
||||
rows, err := models.Signals.Query(
|
||||
models.SelectWhere.Signals.OrganizationID.EQ(org.ID),
|
||||
models.SelectWhere.Signals.OrganizationID.EQ(org.ID()),
|
||||
sm.OrderBy("created").Desc(),
|
||||
).All(ctx, db.PGInstance.BobDB)
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ func SaveOrUpdateContainerRelate(ctx context.Context, org *models.Organization,
|
|||
}
|
||||
return []SqlParam{
|
||||
Uint("p_objectid", row.ObjectID),
|
||||
Int32("p_organization_id", org.ID),
|
||||
Int32("p_organization_id", org.ID()),
|
||||
UUID("p_globalid", row.GlobalID),
|
||||
String("p_created_user", row.CreatedUser),
|
||||
Timestamp("p_created_date", row.CreatedDate),
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ func UploadCommit(ctx context.Context, org Organization, file_id int32, committe
|
|||
um.SetCol("status").ToArg("committing"),
|
||||
um.SetCol("committer").ToArg(committer.ID),
|
||||
um.Where(psql.Quote("id").EQ(psql.Arg(file_id))),
|
||||
um.Where(psql.Quote("organization_id").EQ(psql.Arg(org.ID))),
|
||||
um.Where(psql.Quote("organization_id").EQ(psql.Arg(org.ID()))),
|
||||
).Exec(ctx, txn)
|
||||
if err != nil {
|
||||
return fmt.Errorf("update upload: %w", err)
|
||||
|
|
@ -111,7 +111,7 @@ func UploadDiscard(ctx context.Context, org Organization, file_id int32) error {
|
|||
um.Table(models.FileuploadFiles.Alias()),
|
||||
um.SetCol("status").ToArg("discarded"),
|
||||
um.Where(psql.Quote("id").EQ(psql.Arg(file_id))),
|
||||
um.Where(psql.Quote("organization_id").EQ(psql.Arg(org.ID))),
|
||||
um.Where(psql.Quote("organization_id").EQ(psql.Arg(org.ID()))),
|
||||
).Exec(ctx, db.PGInstance.BobDB)
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue