Skip to content

Commit 273bb15

Browse files
committed
fix: fix AppwriteException Import
Signed-off-by: Jay <jaykumar20march@gmail.com>
1 parent 4f55b35 commit 273bb15

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

templates/node/lib/client.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const URL = require('url').URL;
33
const https = require("https");
44
const axios = require('axios');
55
const FormData = require('form-data');
6-
const {{spec.title | caseUcfirst}}Exception = require('./exception.js');
6+
const { {{spec.title | caseUcfirst}}Exception } = require('./exception.js');
77

88
class Client {
99
static CHUNK_SIZE = 5*1024*1024; // 5MB

templates/node/lib/exception.js.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ class {{spec.title | caseUcfirst}}Exception extends Error {
77
}
88
}
99

10-
module.exports = {{spec.title | caseUcfirst}}Exception;
11-
1210
const ErrorType = {
1311
{% for error in spec.definitions.appwriteException.errorTypes %}
1412
/**

templates/node/lib/services/service.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const Service = require('../service.js');
2-
const {{spec.title | caseUcfirst}}Exception = require('../exception.js');
2+
const { {{spec.title | caseUcfirst}}Exception } = require('../exception.js');
33
const InputFile = require('../inputFile.js');
44
const client = require('../client.js');
55
const Stream = require('stream');

0 commit comments

Comments
 (0)