summaryrefslogtreecommitdiffhomepage
path: root/app/lib/ipc-facade.js
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-08-24 22:05:31 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-08-24 22:05:31 +0200
commitdc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb (patch)
treed7353b3beba6ef6470b68c6077e60af11e39c927 /app/lib/ipc-facade.js
parentadc86a0de57367d0243a4f7dc08c87840f421b39 (diff)
parent81cc03093c05d54d79804595dd0354b1f878cdcd (diff)
downloadmullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.tar.xz
mullvadvpn-dc3fdd74ee240227a23a5fd4e7ce45b17cfe7cbb.zip
Merge branch 'rename-to-expiry'
Diffstat (limited to 'app/lib/ipc-facade.js')
-rw-r--r--app/lib/ipc-facade.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/ipc-facade.js b/app/lib/ipc-facade.js
index 2620f7958c..798b4d2805 100644
--- a/app/lib/ipc-facade.js
+++ b/app/lib/ipc-facade.js
@@ -6,7 +6,7 @@ import { validate } from 'validated/object';
import type { Coordinate2d } from '../types';
-export type AccountData = {paid_until: string};
+export type AccountData = {expiry: string};
export type AccountNumber = string;
export type Ip = string;
export type Location = {
@@ -55,10 +55,10 @@ export class RealIpc implements IpcFacade {
getAccountData(accountNumber: AccountNumber): Promise<AccountData> {
return this._ipc.send('get_account_data', accountNumber)
.then(raw => {
- if (typeof raw === 'object' && raw && raw.paid_until) {
+ if (typeof raw === 'object' && raw && raw.expiry) {
return raw;
} else {
- throw new InvalidReply(raw, 'Expected an object with paid_until');
+ throw new InvalidReply(raw, 'Expected an object with expiry');
}
});
}