Skip to content

Commit c0247cf

Browse files
authored
chore(services): fix linting issue
1 parent 81d7ef5 commit c0247cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/v3/services/firebase/congregations.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,15 @@ export const setCongJoinRequests = async (id: string, requests: UserRequestAcces
528528
};
529529

530530
export const getCongCreatedAt = async (cong_id: string) => {
531-
let createdAt: string;
531+
let createdAt: string | undefined;
532532

533533
createdAt = await getFileFromStorage({ type: 'congregation', path: `${cong_id}/settings/created.txt` });
534534

535-
if (!created) {
535+
if (!createdAt) {
536536
const createdAtDefault = await getFileMetadata({ type: 'congregation', path: `${cong_id}/settings/main.txt` });
537537
createdAt = createdAtDefault?.timeCreated || new Date().toISOString();
538538

539-
await setCongCreatedAt(cond_id, createdAt);
539+
await setCongCreatedAt(cong_id, createdAt!);
540540
}
541541

542542
return createdAt;

0 commit comments

Comments
 (0)