[Gekidou] Update dependencies (#5581)

* Update detox deps

* Push notifications (android & launcher)

* Update dependencies
This commit is contained in:
Elias Nahum
2021-08-01 21:09:19 -04:00
committed by GitHub
parent c452ef8038
commit 8d2bd32897
28 changed files with 7553 additions and 6161 deletions

View File

@@ -10,6 +10,7 @@ import {
retrieveRecords,
} from '@database/operator/utils/general';
import type {WriterInterface} from '@nozbe/watermelondb/Database';
import type Model from '@nozbe/watermelondb/Model';
import type {
@@ -182,8 +183,8 @@ export default class BaseDataOperator {
batchRecords = async (models: Model[]): Promise<void> => {
try {
if (models.length > 0) {
await this.database.action(async () => {
await this.database.batch(...models);
await this.database.write(async (writer: WriterInterface) => {
await writer.batch(...models);
});
}
} catch (e) {