fast follows: - https://discord.com/channels/1130383047699738754/1346433965451382845 - https://discord.com/channels/1130383047699738754/1346434512757981264 - https://discord.com/channels/1130383047699738754/1346453484911853610 --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
13 lines
302 B
TypeScript
13 lines
302 B
TypeScript
export const checkTwentyVersionExists = async (
|
|
version: string,
|
|
): Promise<boolean> => {
|
|
try {
|
|
const response = await fetch(
|
|
`https://api.github.com/repos/twentyhq/twenty/releases/tags/v${version}`,
|
|
);
|
|
return response.status === 200;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
};
|