Skip to content

Commit

Permalink
feat(api): send app language when creating congregation account
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Sep 19, 2023
1 parent 1487c06 commit bf370fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/congregation.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const apiFetchCongregations = async (country, name) => {
};

export const apiCreateCongregation = async (country_code, cong_name, cong_number, role, fullname) => {
const { apiHost, visitorID } = await getProfile();
const { appLang, apiHost, visitorID } = await getProfile();

try {
if (apiHost !== '') {
Expand All @@ -78,6 +78,7 @@ export const apiCreateCongregation = async (country_code, cong_name, cong_number
appversion: import.meta.env.PACKAGE_VERSION,
visitorid: visitorID,
uid: user.uid,
language: appLang.toUpperCase(),
},
body: JSON.stringify({ country_code, cong_name, cong_number, app_requestor: role, fullname }),
});
Expand Down

0 comments on commit bf370fd

Please sign in to comment.