mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 23:12:04 +00:00
chore: format sharing authority controls
Apply repository formatting to provider and import coverage.
This commit is contained in:
1 parent
a620a730b9
commit
f5ca810643
4 files changed
+21
-18
No files matched your search
@@ -168,8 +168,7 @@ describe("shared intake import attribution", () => {
|
||||
const response = await getImportStatus(
|
||||
new NextRequest(
|
||||
`http://localhost/api/medications/${medication.id}/intake/import/${job.id}/status`,
|
||||
{
|
||||
},
|
||||
{},
|
||||
),
|
||||
{ params: Promise.resolve({ id: medication.id, jobId: job.id }) },
|
||||
);
|
||||
|
||||
@@ -121,7 +121,10 @@ const resolveFromSharedRead: (request: NextRequest) => Promise<Response> =
|
||||
apiHandler(async () => {
|
||||
const { user } = await requireRecordAuth("manage", "record");
|
||||
const provider = await resolveProvider(user.id);
|
||||
return NextResponse.json({ data: { provider: provider.type }, error: null });
|
||||
return NextResponse.json({
|
||||
data: { provider: provider.type },
|
||||
error: null,
|
||||
});
|
||||
});
|
||||
|
||||
function runMutation(): Promise<Response> {
|
||||
|
||||
Reference in new issue
Block a user