reformat with prettier with semicolons and tabs

This commit is contained in:
m5r
2021-07-31 23:57:43 +08:00
parent fc4278ca7b
commit 079241ddb0
80 changed files with 1187 additions and 1270 deletions

View File

@ -1,9 +1,9 @@
import { paginate, resolver } from "blitz"
import db, { Prisma, Customer } from "db"
import { paginate, resolver } from "blitz";
import db, { Prisma, Customer } from "db";
interface GetPhoneCallsInput
extends Pick<Prisma.PhoneCallFindManyArgs, "where" | "orderBy" | "skip" | "take"> {
customerId: Customer["id"]
customerId: Customer["id"];
}
export default resolver.pipe(
@ -20,13 +20,13 @@ export default resolver.pipe(
take,
count: () => db.phoneCall.count({ where }),
query: (paginateArgs) => db.phoneCall.findMany({ ...paginateArgs, where, orderBy }),
})
});
return {
phoneCalls,
nextPage,
hasMore,
count,
}
};
}
)
);