Skip to content

Commit 193a708

Browse files
committed
fix #32
1 parent 7ccdcc4 commit 193a708

File tree

7 files changed

+4
-18
lines changed

7 files changed

+4
-18
lines changed

cli/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasmo"
3-
version = "1.2.1"
3+
version = "1.2.2"
44
edition = "2021"
55
authors = ["Zwiterrion <[email protected]>"]
66
license = "MIT OR Apache-2.0"

server/datastores/migrations/pg-1.22.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ async function PG_1_22(pgDatastore) {
3737
if (!migrated) {
3838
const usersPlugins = await getUsers(pgDatastore)
3939

40-
console.log('migrate users : ', users)
41-
4240
return usersPlugins.map(user => {
4341
return Promise.all(user.plugins.map(plugin => createPlugin(pgDatastore, plugin)))
4442
})

server/datastores/migrations/s3-1.22.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ function getUserPlugins(s3Datastore, email) {
6666
async function createPlugin(s3Datastore, email, pluginId, content) {
6767
const { instance, Bucket } = s3Datastore.state;
6868

69-
console.log(content)
70-
7169
const params = {
7270
Bucket,
7371
Key: `${pluginId}.json`,
@@ -86,8 +84,6 @@ async function S3_1_22(s3Datastore) {
8684
if (!migrated) {
8785
const users = await getUsers(s3Datastore)
8886

89-
console.log('migrate users : ', users)
90-
9187
const usersPlugins = await Promise.all(users.map(user => getUserPlugins(s3Datastore, user)));
9288

9389
await Promise.all(usersPlugins.map((userPlugins, idx) => {
@@ -98,8 +94,6 @@ async function S3_1_22(s3Datastore) {
9894
})))
9995
}))
10096

101-
// TODO - problem came from the email formatter [email protected] and wasmototools
102-
10397
const pluginsByUser = usersPlugins.reduce((acc, userPlugins, idx) => {
10498
return [...acc, ...userPlugins.map(plugin => ({
10599
plugin: {
@@ -114,7 +108,6 @@ async function S3_1_22(s3Datastore) {
114108
.reduce((promise, item) => promise.then(() => new Promise(resolve => {
115109
const { plugin, email } = item;
116110

117-
console.log('add ', email, plugin)
118111
s3Datastore.addPluginToList(email, plugin)
119112
.then(resolve)
120113
})), Promise.resolve())

server/datastores/s3.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ module.exports = class S3Datastore extends Datastore {
7676
const URL = url.parse(ENV.S3_ENDPOINT);
7777

7878
const ip = await new Promise(resolve => dns.lookup(URL.hostname, (_, ip) => resolve(ip)));
79-
console.log(`${URL.protocol}//${ip}:${URL.port}${URL.pathname}`)
8079
logger.debug(`${URL.protocol}//${ip}:${URL.port}${URL.pathname}`)
8180
this.state = {
8281
instance: new S3Client({
@@ -627,7 +626,6 @@ module.exports = class S3Datastore extends Datastore {
627626

628627
getUserPlugins = async email => {
629628
const plugins = await this.getPlugins();
630-
console.log(plugins)
631629

632630
const userPlugins = plugins.filter(plugin => {
633631
const users = plugin.users || [];
@@ -636,9 +634,6 @@ module.exports = class S3Datastore extends Datastore {
636634
return arrayIncludesEmail(users, email) || arrayIncludesEmail(admins, email)
637635
}) || []
638636

639-
console.log("users plugins")
640-
console.log(userPlugins, email)
641-
642637
return Promise.all(userPlugins.map(plugin => this.getPlugin(email, plugin.pluginId)))
643638
.then(plugins => {
644639
return plugins.filter(data => Object.keys(data).length > 0)

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wasmo",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"main": "index.js",
55
"license": "MIT",
66
"scripts": {

ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ui",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"private": true,
55
"dependencies": {
66
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",

0 commit comments

Comments
 (0)