mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +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...");
|
console.log("adding organisation members...");
|
||||||
await db.insert(OrganisationMember).values([
|
await db.insert(OrganisationMember).values([
|
||||||
{ organisationId: u1o1.id, userId: u1.id, role: "owner" },
|
{ 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: u1.id, role: "owner" },
|
||||||
|
{ organisationId: u1o2.id, userId: u2.id, role: "member" },
|
||||||
{ organisationId: u2o1.id, userId: u2.id, role: "owner" },
|
{ 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: u2.id, role: "owner" },
|
||||||
|
{ organisationId: u2o2.id, userId: u1.id, role: "member" },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
console.log("added organisation members");
|
console.log("added organisation members");
|
||||||
|
|||||||
Reference in New Issue
Block a user