fireway icon indicating copy to clipboard operation
fireway copied to clipboard

"fireway detected open async calls" when creating documents

Open bradleesand opened this issue 1 year ago • 4 comments

For some reason, I keep getting warnings that "fireway detected open async" calls whenever I create a document in a migration. All of these example migrations that do manage their async calls properly, are getting that warning.

module.exports.migrate = async ({ firestore: db }) => {
    await db.collection('test').add({ foo: 'bar' });
};
module.exports.migrate = async ({ firestore: db }) => {
    await db.collection('test').doc().set({ foo: 'bar' });
};
module.exports.migrate = ({ firestore: db }) => {
   db.collection('test').doc();
};

bradleesand avatar Jan 28 '23 23:01 bradleesand