Skip to content

Commit dbc5f7d

Browse files
Remove stringification of JSON
Data type updated in SQL
1 parent 16af9c6 commit dbc5f7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controller/Spotify.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ exports.storeSpotifyCredentials = ({ email, display_name, product, country, spot
111111
const connection = await connect();
112112
const repo = connection.getRepository(MusicProviders);
113113

114-
const additional = JSON.stringify({ product, country, spotifyId, email, display_name });
114+
const additional = { product, country, spotifyId, email, display_name };
115115
repo.save({ userId, country, expiresIn: expires_in, accessToken: access_token, refreshToken: refresh_token, additional, displayName: display_name })
116116

117117
resolve({})

0 commit comments

Comments
 (0)