Skip to content

Commit 6515f83

Browse files
jshcrowthejsayol
authored andcommitted
WIP: fixes from @schmidt-sebastian's review
1 parent 3b4e46a commit 6515f83

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/database/api/Database.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { Reference } from './Reference';
66
import { Repo } from '../core/Repo';
77
import { RepoManager } from '../core/RepoManager';
88
import { validateArgCount } from '../../utils/validation';
9-
import { FirebaseApp } from "../../app/firebase_app";
10-
zimport { validateUrl } from '../core/util/validation';
9+
import { validateUrl } from '../core/util/validation';
1110
import { FirebaseApp, FirebaseService } from '../../app/firebase_app';
1211
import { RepoInfo } from '../core/RepoInfo';
1312

@@ -109,13 +108,8 @@ export class Database implements FirebaseService {
109108
}
110109
}
111110

112-
Object.defineProperty(Repo.prototype, 'database', {
113-
get(): Database {
114-
return this.__database || (this.__database = new Database(this));
115-
}
116-
});
117-
118-
export class DatabaseInternals {
111+
class DatabaseInternals {
112+
database
119113
/** @param {!Database} database */
120114
constructor(public database: Database) {
121115
}

0 commit comments

Comments
 (0)