mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
refactor: eslint and prettier conflict will be resolved and formatted
This commit is contained in:
@@ -19,26 +19,28 @@ async function getExpiredWorkspaceTargets(): Promise<ExpiredWorkspaceTarget[]> {
|
||||
return [];
|
||||
}
|
||||
|
||||
return db.workspace.findMany({
|
||||
where: {
|
||||
ownerId: { in: expiredOwners.map((owner) => owner.id) },
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
ownerId: true,
|
||||
owner: {
|
||||
select: {
|
||||
email: true,
|
||||
return db.workspace
|
||||
.findMany({
|
||||
where: {
|
||||
ownerId: { in: expiredOwners.map((owner) => owner.id) },
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
ownerId: true,
|
||||
owner: {
|
||||
select: {
|
||||
email: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}).then((workspaces) =>
|
||||
workspaces.map((workspace) => ({
|
||||
id: workspace.id,
|
||||
ownerId: workspace.ownerId,
|
||||
ownerEmail: workspace.owner.email,
|
||||
}))
|
||||
);
|
||||
})
|
||||
.then((workspaces) =>
|
||||
workspaces.map((workspace) => ({
|
||||
id: workspace.id,
|
||||
ownerId: workspace.ownerId,
|
||||
ownerEmail: workspace.owner.email,
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
||||
export async function cleanupExpiredBillingWorkspaces(options?: { dryRun?: boolean }) {
|
||||
|
||||
Reference in New Issue
Block a user