Skip to content

Commit

Permalink
🥅 Lint Error Catching
Browse files Browse the repository at this point in the history
  • Loading branch information
Orca1110 committed Sep 30, 2022
1 parent 594370d commit 0efc9c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions api/fcm/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import client from '../client';
import {SingleAlert, FCMParams} from './types';
import {SingleAlert, FCMParams, MultiAlert} from './types';

export async function sendFCMToken(params: FCMParams) {
const response = await client.post('/fcmToken', params);
Expand All @@ -8,10 +8,11 @@ export async function sendFCMToken(params: FCMParams) {

export async function sendSingleAlarm(params: SingleAlert) {
const response = await client.post('/api/fcm/welcome', params);
console.log('Welcome API Worked!');
return response.config.data;
}

export async function sendMultiAlarm(params: number) {
export async function sendMultiAlarm(params: MultiAlert) {
const response = await client.post('/api/fcm/submit', params);
console.log('Pool User ID Received!');
return response.config.data;
Expand Down
2 changes: 1 addition & 1 deletion screens/CreateMsgScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function CreateMessageScreen() {
create(formData);
// onSuccessSubmit();
send({brand_id: id?.poolUserId as number});
}, [create, form]);
}, [create, form, id?.poolUserId]);

// const onSuccessSubmit = () => {
// send(id?.poolUserId as number);
Expand Down

0 comments on commit 0efc9c3

Please sign in to comment.