fix: platform seed script (#15617)

Co-authored-by: Rajiv Sahal <rajivsahal@Rajivs-MacBook-Pro.local>
This commit is contained in:
Rajiv SahalandRajiv Sahal authored and GitHub committed 2024-07-03 15:31:41 +00:00
1 parent ab5d4f1d03
commit c3a532cff0
1 file changed
+14
+14
View File
@@ -181,6 +181,19 @@ async function createPlatformAndSetupUser({
subscriptionId: "sub_123",
},
});
await prisma.platformOAuthClient.create({
data: {
name: "Acme",
redirectUris: ["http://localhost:4321"],
permissions: 1023,
areEmailsEnabled: true,
organizationId: team.id,
id: "clxyyy21o0003sbk7yw5z6tzg",
secret:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQWNtZSAiLCJwZXJtaXNzaW9ucyI6MTAyMywicmVkaXJlY3RVcmlzIjpbImh0dHA6Ly9sb2NhbGhvc3Q6NDMyMSJdLCJib29raW5nUmVkaXJlY3RVcmkiOiIiLCJib29raW5nQ2FuY2VsUmVkaXJlY3RVcmkiOiIiLCJib29raW5nUmVzY2hlZHVsZVJlZGlyZWN0VXJpIjoiIiwiYXJlRW1haWxzRW5hYmxlZCI6dHJ1ZSwiaWF0IjoxNzE5NTk1ODA4fQ.L5_jSS14fcKLCD_9_DAOgtGd6lUSZlU5CEpCPaPt41I",
},
});
console.log(`\t👤 Added '${teamInput.name}' membership for '${username}' with role '${role}'`);
}
}
@@ -911,6 +924,7 @@ async function main() {
name: "Platform Team",
slug: "platform-admin-team",
isPlatform: true,
isOrganization: true,
eventTypes: {
createMany: {
data: [