mirror of
https://github.com/Nezumi-2711/javascript-training.git
synced 2026-09-22 20:01:31 +00:00
Merge branch 'feat/login-method' into feat/impl-local-storage-service
This commit is contained in:
@@ -30,7 +30,8 @@ export default class CommonService {
|
||||
|
||||
async getDataFromId(id, path = this.defaultPath) {
|
||||
this.connectToDb();
|
||||
const data = await this.firebaseService.getDataFromId(id, path);
|
||||
const result = await this.firebaseService.getDataFromId(id, path);
|
||||
const data = await timeOutConnect(result);
|
||||
if (data) return data;
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user