@merkl/api 0.16.30 → 0.16.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -297,7 +297,8 @@ export class TokenService {
|
|
297
297
|
return await TokenRepository.update(id, data);
|
298
298
|
}
|
299
299
|
static async notionWebhook(body) {
|
300
|
-
const
|
300
|
+
const env = process.env.ENV === "prod" ? "production" : process.env.ENV;
|
301
|
+
const bucket = new BucketService(`merkl-${env}-tokens`, `angle-${env}-1`);
|
301
302
|
const properties = body.data.properties;
|
302
303
|
const icon = properties["Icon"].files?.[0]?.file.url;
|
303
304
|
const iconFile = await fetch(icon);
|