@@ -46,7 +46,7 @@ public SettingsController(SessionService sessionService) {
46
46
*/
47
47
@ GetMapping (value = "/" , produces = MediaType .APPLICATION_JSON_VALUE )
48
48
public GenericObjectResponse <List <Setting >> retrieveSettings (@ RequestHeader (name = "X-Session-Authenticator" ) String sessionIdentifier ,
49
- @ PathVariable (name = "guildId" ) String guildId ) {
49
+ @ PathVariable (name = "guildId" ) long guildId ) {
50
50
try {
51
51
GuildContainer guildContainer = sessionService .retrieveGuild (sessionIdentifier , guildId );
52
52
return new GenericObjectResponse <>(true , SQLSession .getSqlConnector ().getSqlWorker ().getAllSettings (guildId ), "Setting retrieved!" );
@@ -64,7 +64,7 @@ public GenericObjectResponse<List<Setting>> retrieveSettings(@RequestHeader(name
64
64
*/
65
65
@ GetMapping (value = "/{settingName}" , produces = MediaType .APPLICATION_JSON_VALUE )
66
66
public GenericObjectResponse <Setting > retrieveSetting (@ RequestHeader (name = "X-Session-Authenticator" ) String sessionIdentifier ,
67
- @ PathVariable (name = "guildId" ) String guildId ,
67
+ @ PathVariable (name = "guildId" ) long guildId ,
68
68
@ PathVariable (name = "settingName" ) String settingName ) {
69
69
try {
70
70
GuildContainer guildContainer = sessionService .retrieveGuild (sessionIdentifier , guildId );
@@ -88,7 +88,7 @@ public GenericObjectResponse<Setting> retrieveSetting(@RequestHeader(name = "X-S
88
88
*/
89
89
@ PostMapping (value = "/{settingName}/update" , produces = MediaType .APPLICATION_JSON_VALUE )
90
90
public GenericObjectResponse <Setting > updateSetting (@ RequestHeader (name = "X-Session-Authenticator" ) String sessionIdentifier ,
91
- @ PathVariable (name = "guildId" ) String guildId ,
91
+ @ PathVariable (name = "guildId" ) long guildId ,
92
92
@ PathVariable (name = "settingName" ) String settingName ,
93
93
@ RequestBody GenericValueRequest request ) {
94
94
try {
@@ -114,7 +114,7 @@ public GenericObjectResponse<Setting> updateSetting(@RequestHeader(name = "X-Ses
114
114
*/
115
115
@ GetMapping (value = "/{settingName}/delete" , produces = MediaType .APPLICATION_JSON_VALUE )
116
116
public GenericResponse deleteSetting (@ RequestHeader (name = "X-Session-Authenticator" ) String sessionIdentifier ,
117
- @ PathVariable (name = "guildId" ) String guildId ,
117
+ @ PathVariable (name = "guildId" ) long guildId ,
118
118
@ PathVariable (name = "settingName" ) String settingName ) {
119
119
try {
120
120
GuildContainer guildContainer = sessionService .retrieveGuild (sessionIdentifier , guildId );
0 commit comments