stefan-prokop-cz/firebless

View on GitHub
src/lib/firestoreRepository.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
96%

Function bind has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const bind = <Model extends { id?: string }>(collection: CollectionReference) => {
    return {
        bulkCreate: (data?: Partial<AllowType<Model, FieldValue>>[]) => bulkCreate<AllowType<Model, FieldValue>>(collection, data),
        bulkUpdate: (data?: Partial<AllowType<Model, FieldValue>>[], options?: SetOptions) =>
            bulkUpdate<AllowType<Model, FieldValue>>(collection, data, {
Severity: Minor
Found in src/lib/firestoreRepository.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status