Write into empty log fix
This commit is contained in:
@@ -35,7 +35,10 @@ namespace WebAPI.Controllers
|
||||
}
|
||||
var response = googleSheetValues.Get(configuration["appLogsFile"], $"{type}!A:A").Execute();
|
||||
var data = response.Values;
|
||||
int row = data.Count + 1;
|
||||
int row = 1;
|
||||
if (data != null) {
|
||||
row = data.Count + 1;
|
||||
}
|
||||
var range = $"{type}!A{row}:D{row}";
|
||||
|
||||
List<object> logRow = new List<object>
|
||||
|
||||
Reference in New Issue
Block a user