Remove Temporal workflows from teams service
All checks were successful
Build Docker Image / build (push) Successful in 2m27s

This commit is contained in:
Ruslan Bakiev
2026-05-31 12:15:58 +05:00
parent bca9fbc3db
commit dd99bbe2e7
5 changed files with 26 additions and 464 deletions

View File

@@ -1,6 +1,5 @@
import { GraphQLError } from 'graphql'
import { prisma } from '../db.js'
import { startTeamCreated } from '../services/temporal.js'
import type { AuthContext } from '../auth.js'
export const userTypeDefs = `#graphql
@@ -147,12 +146,6 @@ export const userResolvers = {
await prisma.teamMember.create({ data: { teamId: team.id, userId: profile.userId, role: 'OWNER' } })
await prisma.userProfile.update({ where: { id: profile.id }, data: { activeTeamId: team.id } })
try {
await startTeamCreated(team.uuid, team.name, ctx.userId, team.teamType)
} catch (e) {
console.error('Failed to start team_created workflow:', e)
}
return {
team: { id: team.uuid, name: team.name, teamType: team.teamType, logtoOrgId: team.logtoOrgId, createdAt: team.createdAt.toISOString() },
success: true,