Skip to content

Commit

Permalink
πŸ› fix: undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
david-vaclavek committed Oct 5, 2023
1 parent 67d67bb commit 4f5e0c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/controllers/localazy-transfer-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ const { UPLOAD_FINISHED_EVENT, DOWNLOAD_FINISHED_EVENT } = require('../constants

module.exports = {
async upload(ctx) {
const streamIdentifier = generateRandomId();
try {
const streamIdentifier = generateRandomId();

const LocalazyTransferUploadService = strapi
.plugin("localazy")
.service("localazyTransferUploadService");
Expand All @@ -36,9 +35,8 @@ module.exports = {
},

async download(ctx) {
const streamIdentifier = generateRandomId();
try {
const streamIdentifier = generateRandomId();

const LocalazyTransferDownloadService = strapi
.plugin("localazy")
.service("localazyTransferDownloadService");
Expand Down

0 comments on commit 4f5e0c1

Please sign in to comment.