Update actor to use PineDeferred type

This commit is contained in:
myarmolinsky 2024-09-17 07:19:36 -04:00
parent a8ff13aeba
commit 7073e709ea
4 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ export default class APIKeyListCmd extends Command {
await getApplication(getBalenaSdk(), options.fleet, {
$select: 'actor',
})
).actor
).actor.__id
: await getBalenaSdk().auth.getActorId();
const keys = await getBalenaSdk().pine.get({
resource: 'api_key',

View File

@ -416,11 +416,11 @@ export class BalenaAPIMock extends NockMock {
* Mocks balena-release call
*/
public expectGetUser(opts: ScopeOpts = {}) {
this.optGet(/^\/v6\/user/, opts).reply(200, {
this.optGet(/^\/v7\/user/, opts).reply(200, {
d: [
{
id: 99999,
actor: 1234567,
actor: { __id: 1234567 },
username: 'gh_user',
created_at: '2018-08-19T13:55:04.485Z',
__metadata: {

View File

@ -23,7 +23,7 @@
}
],
"depends_on__application": null,
"actor": 3423895,
"actor": { "__id": 3423895 },
"app_name": "testApp",
"slug": "gh_user/testApp",
"should_be__running_release": [

View File

@ -23,7 +23,7 @@
}
],
"depends_on__application": null,
"actor": 3423895,
"actor": { "__id": 3423895 },
"app_name": "testApp",
"slug": "gh_user/testApp",
"should_be__running_release": [