Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
henryfauna committed Dec 11, 2024
1 parent 454c665 commit 3eded61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/commands/schema/status.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ async function doStatus(argv) {
const secret = await getSecret();
const absoluteDirPath = path.resolve(argv.dir);
const gatherFSL = container.resolve("gatherFSL");
const fsl = reformatFSL(await gatherFSL(argv.dir));
const fslFiles = await gatherFSL(argv.dir);
const hasLocalSchema = fslFiles.length > 0;
const fsl = reformatFSL(fslFiles);

const hasLocalSchema = fsl.entries().next().done === false;

const statusParams = new URLSearchParams({ diff: "summary" });
const statusParams = new URLSearchParams({ format: "summary" });
const statusResponse = await makeFaunaRequest({
argv,
path: "/schema/1/staged/status",
Expand All @@ -35,8 +35,8 @@ async function doStatus(argv) {
let diffResponse = null;
if (hasLocalSchema) {
const diffParams = new URLSearchParams({
diff: "summary",
staged: "true",
format: "summary",
version: statusResponse.version,
});
diffResponse = await makeFaunaRequest({
Expand Down

0 comments on commit 3eded61

Please sign in to comment.