|
|
@ -8,7 +8,7 @@ async function main () { |
|
|
|
try { |
|
|
|
// Authenticate as an admin
|
|
|
|
// await pb.admins.authWithPassword('gyoza@hfsplay.fr', 'gyozagyoza') // Replace with your admin credentials
|
|
|
|
await pb.collection('_superusers').authWithPassword('karkinge@gmail.com', 'k4rk1ng3*') // Replace with your admin credentials
|
|
|
|
await pb.collection('_superusers').authWithPassword('karkinge@gmail.com', 'XXXXXXX') // Replace with your admin credentials
|
|
|
|
console.log('connected !') |
|
|
|
let stock = await pb.collection('stock').getFullList({ |
|
|
|
sort: 'created' |
|
|
|