This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chown -R www-data:www-data APP_PATH | |
sudo usermod -a -G www-data ubuntu | |
sudo find APP_PATH -type f -exec chmod 644 {} \; | |
sudo find APP_PATH -type d -exec chmod 755 {} \; | |
sudo chgrp -R www-data APP_PATH/storage APP_PATH/bootstrap/cache | |
sudo chmod -R ug+rwx APP_PATH/storage APP_PATH/bootstrap/cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useState } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { toast } from 'react-toastify'; | |
import { BASE_API_URL } from '../constants'; | |
import { downloadFile } from '../utility'; | |
const DownloadMix = function DownloadMix({ files }) { | |
const controller = new AbortController(); | |
const [isDownloading, setDownloading] = useState(false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
BadRequestException, | |
ConflictException, | |
Injectable, | |
} from '@nestjs/common'; | |
import { InjectRepository } from '@nestjs/typeorm'; | |
import { Event, EventGenderEnum } from 'src/events/event.entity'; | |
import { User } from 'src/users/user.entity'; | |
import { DeepPartial, Repository } from 'typeorm'; | |
import { Participant } from './participant.entity'; |