Skip to content

Commit 3500a69

Browse files
committed
🐛 Send account id as json
1 parent 7de8687 commit 3500a69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/models/controller.model.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,8 +1377,12 @@ export class Controller {
13771377
try {
13781378
const accountId = await this.adapter.getAccountId(providerConfig);
13791379

1380+
if (!accountId) {
1381+
throw new ServerError(500, 'AccountID not found');
1382+
}
1383+
13801384
infoLogger('getAccountId', 'END', providerConfig.apiKey);
1381-
res.status(200).send(accountId.toString());
1385+
res.status(200).json(accountId.toString());
13821386
} catch (error: any) {
13831387
errorLogger(
13841388
'getAccountId',

0 commit comments

Comments
 (0)