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
const getHandler = async ( | |
req: AuthenticatedApiRequest, | |
res: NextApiResponse | |
) => { | |
const query = qp(req.query.query) | |
? JSON.parse(qp(req.query.query)) | |
: undefined; | |
const selectInput = coalesceUndefined(query?.select); | |
const whereInput = coalesceUndefined(query?.where); |
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
//TODO: Includ path to get extension | |
export default function stripExtenstion(filename, extension) { | |
const regex = new RegExp(`.${extension}$`, 'g') | |
return filename.replace(regex, '') | |
} | |
export const stripExtenstion = stripExtenstion; |
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
#!/bin/bash | |
# Usage ./images.sh optional-start-sha optional-end-sha | |
# ./images.sh eaa1d00b24008f590b95ad099241b4003688cdda HEAD | |
if [ $1 ]; then | |
start="$1.." | |
else | |
start="" | |
fi | |
if [ $2 ]; then |