Skip to content

Commit 2d1e951

Browse files
committed
Running prettier
1 parent 224326d commit 2d1e951

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

web/layouts/default.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default class DefaultLayout extends Vue {
5757
if (this.$store.getters.getAuthUser && this.$store.getters.getOwner) {
5858
promises.push(
5959
this.$store.dispatch('loadThreads'),
60-
this.$store.dispatch('getHeartbeat'),
60+
this.$store.dispatch('getHeartbeat')
6161
)
6262
}
6363
@@ -69,8 +69,8 @@ export default class DefaultLayout extends Vue {
6969
promises.push(
7070
this.$store.dispatch(
7171
'loadThreadMessages',
72-
this.$store.getters.getThread.id,
73-
),
72+
this.$store.getters.getThread.id
73+
)
7474
)
7575
}
7676
await Promise.all(promises)

web/middleware/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const setUser = (context: Context): Promise<User | null> => {
2525
resolve(user)
2626
})
2727
},
28-
reject,
28+
reject
2929
)
3030
})
3131
}

web/pages/billing/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
Your next bill is for <b>${{ plan.price }}</b> on
4242
<b>{{
4343
new Date(
44-
$store.getters.getUser.subscription_renews_at,
44+
$store.getters.getUser.subscription_renews_at
4545
).toLocaleDateString()
4646
}}</b>
4747
</p>
@@ -52,7 +52,7 @@
5252
You will be downgraded to the <b>FREE</b> plan on
5353
<b>{{
5454
new Date(
55-
$store.getters.getUser.subscription_ends_at,
55+
$store.getters.getUser.subscription_ends_at
5656
).toLocaleDateString()
5757
}}</b>
5858
</p>
@@ -93,7 +93,7 @@
9393
of the current billing period on
9494
<b>{{
9595
new Date(
96-
$store.getters.getUser.subscription_renews_at,
96+
$store.getters.getUser.subscription_renews_at
9797
).toLocaleDateString()
9898
}}</b>
9999
</p>
@@ -370,7 +370,7 @@ export default Vue.extend({
370370
plan(): PaymentPlan {
371371
return this.plans.find(
372372
(x) =>
373-
x.id === (this.$store.getters.getUser?.subscription_name || 'free'),
373+
x.id === (this.$store.getters.getUser?.subscription_name || 'free')
374374
)!
375375
},
376376
isOnFreePlan(): boolean {

web/store/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export const actions = {
351351
fcm_token: phone.fcm_token,
352352
phone_number: phone.phone_number,
353353
message_expiration_seconds: parseInt(
354-
phone.message_expiration_seconds.toString(),
354+
phone.message_expiration_seconds.toString()
355355
),
356356
max_send_attempts: parseInt(phone.max_send_attempts.toString()),
357357
messages_per_minute: parseInt(phone.messages_per_minute.toString()),
@@ -371,7 +371,7 @@ export const actions = {
371371

372372
async handleAxiosError(
373373
context: ActionContext<State, State>,
374-
error: AxiosError,
374+
error: AxiosError
375375
) {
376376
const errorMessage =
377377
error.response?.data?.data[Object.keys(error.response?.data?.data)[0]][0]
@@ -406,7 +406,7 @@ export const actions = {
406406

407407
async sendMessage(
408408
context: ActionContext<State, State>,
409-
request: SendMessageRequest,
409+
request: SendMessageRequest
410410
) {
411411
await axios.post('/v1/messages/send', request)
412412
await Promise.all([
@@ -421,7 +421,7 @@ export const actions = {
421421

422422
addNotification(
423423
context: ActionContext<State, State>,
424-
request: NotificationRequest,
424+
request: NotificationRequest
425425
) {
426426
context.commit('setNotification', request)
427427
},
@@ -436,7 +436,7 @@ export const actions = {
436436

437437
async loadThreadMessages(
438438
context: ActionContext<State, State>,
439-
threadId: string | null,
439+
threadId: string | null
440440
) {
441441
await context.commit('setThreadId', threadId)
442442
const response = await axios.get('/v1/messages', {
@@ -451,7 +451,7 @@ export const actions = {
451451

452452
async setAuthUser(
453453
context: ActionContext<State, State>,
454-
user: AuthUser | null | undefined,
454+
user: AuthUser | null | undefined
455455
) {
456456
const userChanged = user?.id !== context.getters.getAuthUser?.id
457457

@@ -468,7 +468,7 @@ export const actions = {
468468
])
469469

470470
const phone = context.getters.getPhones.find(
471-
(x: Phone) => x.id === context.getters.getUser.active_phone_id,
471+
(x: Phone) => x.id === context.getters.getUser.active_phone_id
472472
)
473473
if (phone) {
474474
await context.dispatch('setOwner', phone.phone_number)
@@ -478,7 +478,7 @@ export const actions = {
478478
async onAuthStateChanged(
479479
context: ActionContext<State, State>,
480480
// @ts-ignore
481-
{ authUser },
481+
{ authUser }
482482
) {
483483
if (authUser == null) {
484484
context.commit('setAuthUser', null)
@@ -511,7 +511,7 @@ export const actions = {
511511

512512
async updateThread(
513513
context: ActionContext<State, State>,
514-
payload: { threadId: string; isArchived: boolean },
514+
payload: { threadId: string; isArchived: boolean }
515515
) {
516516
await axios.put(`/v1/message-threads/${payload.threadId}`, {
517517
is_archived: payload.isArchived,

0 commit comments

Comments
 (0)