We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9fbc7ef + 066c9a8 commit aed070cCopy full SHA for aed070c
src/builders/database-builder.ts
@@ -37,7 +37,7 @@ export default class DatabaseBuilder extends FunctionBuilder {
37
handler: (event: Event<DatabaseDeltaSnapshot>) => PromiseLike<any> | any
38
): CloudFunction {
39
if (!this._path) {
40
- throw new Error('Must call .path(pathValue) before .on() for database function definitions.');
+ throw new Error('Must call .path(pathValue) before .onWrite() for database function definitions.');
41
}
42
return this._makeHandler(handler, 'data.write');
43
0 commit comments