fix: broken create github gist for collections

This commit is contained in:
liyasthomas
2021-06-11 09:05:00 +05:30
parent af9c7e0aff
commit 43b0225fba

View File

@@ -195,13 +195,14 @@ export default {
}, },
methods: { methods: {
async createCollectionGist() { async createCollectionGist() {
this.getJSONCollection()
await this.$axios await this.$axios
.$post( .$post(
"https://api.github.com/gists", "https://api.github.com/gists",
{ {
files: { files: {
"hoppscotch-collections.json": { "hoppscotch-collections.json": {
content: this.getJSONCollection(), content: this.collectionJson,
}, },
}, },
}, },