We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 484ed59 commit 6a93247Copy full SHA for 6a93247
packages/client-direct/src/manage-api.ts
@@ -162,6 +162,9 @@ export function createManageApiRouter(
162
if(!agent && item.status === AccountStatus.ACTIVE) {
163
item.status = AccountStatus.PAUSED;
164
await changeAccountStatus(item.id, AccountStatus.PAUSED);
165
+ } else if(agent && item.status !== AccountStatus.ACTIVE) {
166
+ item.status = AccountStatus.ACTIVE;
167
+ await changeAccountStatus(item.id, AccountStatus.ACTIVE);
168
}
169
170
0 commit comments