something update

This commit is contained in:
2024-09-14 20:13:15 -04:00
parent cc6529a487
commit abe4b3cfb1
4 changed files with 20 additions and 5 deletions

View File

@@ -29,6 +29,7 @@
"express": "^4.21.0", "express": "^4.21.0",
"mongoose": "^8.6.2", "mongoose": "^8.6.2",
"ms": "^2.1.3", "ms": "^2.1.3",
"ollama": "^0.5.9" "ollama": "^0.5.9",
"uuid": "^10.0.0"
} }
} }

9
pnpm-lock.yaml generated
View File

@@ -38,6 +38,9 @@ importers:
ollama: ollama:
specifier: ^0.5.9 specifier: ^0.5.9
version: 0.5.9 version: 0.5.9
uuid:
specifier: ^10.0.0
version: 10.0.0
devDependencies: devDependencies:
'@sveltejs/adapter-auto': '@sveltejs/adapter-auto':
specifier: ^3.0.0 specifier: ^3.0.0
@@ -1106,6 +1109,10 @@ packages:
resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==}
engines: {node: '>= 0.4.0'} engines: {node: '>= 0.4.0'}
uuid@10.0.0:
resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==}
hasBin: true
vary@1.1.2: vary@1.1.2:
resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
engines: {node: '>= 0.8'} engines: {node: '>= 0.8'}
@@ -2162,6 +2169,8 @@ snapshots:
utils-merge@1.0.1: {} utils-merge@1.0.1: {}
uuid@10.0.0: {}
vary@1.1.2: {} vary@1.1.2: {}
vite@5.4.5: vite@5.4.5:

View File

@@ -1,4 +1,4 @@
import APIRoute from "../APIRoute"; import APIRoute from "../APIRoute.js";
export default class UsersAPI extends APIRoute { export default class UsersAPI extends APIRoute {
constructor() { constructor() {
@@ -20,5 +20,13 @@ export default class UsersAPI extends APIRoute {
let db = req.app.get('mongo').users; let db = req.app.get('mongo').users;
let result = await db.create({
recipes: [],
dietaryRestrictions: [],
firstName: "String",
lastName: "OtherString",
email: ""
});
} }
} }

View File

@@ -13,9 +13,6 @@ const UserSchema = new mongoose.Schema({
firstName: String, firstName: String,
lastName: String, lastName: String,
email: String email: String
}, { timestamps: true }); }, { timestamps: true });
export default class Users { export default class Users {