mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 10:33:01 +00:00
ensure all users are members of all orgs
This commit is contained in:
@@ -108,9 +108,13 @@ async function seed() {
|
||||
console.log("adding organisation members...");
|
||||
await db.insert(OrganisationMember).values([
|
||||
{ organisationId: u1o1.id, userId: u1.id, role: "owner" },
|
||||
{ organisationId: u1o1.id, userId: u2.id, role: "member" },
|
||||
{ organisationId: u1o2.id, userId: u1.id, role: "owner" },
|
||||
{ organisationId: u1o2.id, userId: u2.id, role: "member" },
|
||||
{ organisationId: u2o1.id, userId: u2.id, role: "owner" },
|
||||
{ organisationId: u2o1.id, userId: u1.id, role: "member" },
|
||||
{ organisationId: u2o2.id, userId: u2.id, role: "owner" },
|
||||
{ organisationId: u2o2.id, userId: u1.id, role: "member" },
|
||||
]);
|
||||
|
||||
console.log("added organisation members");
|
||||
|
||||
Reference in New Issue
Block a user