Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pet-Supplies_Magdalena_and_Jonathan #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jonathan-SS
Copy link

No description provided.

@Jonathan-SS Jonathan-SS changed the title pet-Supplies pet-Supplies_Magdalena_and_Jonathan Mar 2, 2022
@@ -7,8 +7,7 @@ export const action = async ({ request }) => {
const body = form.get("body");

const uuid = new Date().getTime().toString(16);
db.data.posts.push({ id: uuid, title, body });
db.write();
v;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really bad

"description": "The smallest we have."
},
{
"id": "2",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need more detailed data,

Comment on lines +1 to +9
import path from "path";
import { JSONFileSync, LowSync } from "lowdb";

const file = path.join(__dirname, "../app/db/pet-supplies/db.json");
const adapter = new JSONFileSync(file);
const db = new LowSync(adapter);

db.read();
export default db;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants